Commit Graph

128 Commits

Author SHA1 Message Date
e8f8f24c84 vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
37a0068960 coverity#984143 Uninitialized scalar field
Change-Id: I2940b86ce45dfc6b7399b76c84f88c5658f4a923
2014-02-19 09:29:43 +00:00
171bde3d1e glx 1.3 is already supported in out base line
Change-Id: I4304368ebb5f40cb946290a717240143f845e0c9
2014-02-12 01:01:36 +01:00
59a5ccb952 bool improvements
Change-Id: I89e8351001dcdda9303473f38ece3b57c0d9e72c
2014-01-17 18:45:15 +01:00
9ed364774c Adapt all (non-extension, SharedLibrary) .components to environment="..."
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17 11:06:00 +01:00
b415ec8cad Fix fallout from 461e0f9eaf9895ecd0eba67b35a4d2cec8a5e5c5
Change-Id: I9df591c084175848bb58a97db2241f18cbe53db2
2013-12-05 15:28:15 +02:00
492c23afcc Fix opengl transitions some more.
More fixup after a775188f6bbf3bbf8448b2b7398a1902908bb5e2 -
shuffling use of framebuffer config array to a place where it's not
yet free-ed again.

Change-Id: Icc50d08e2d42e6fbdb46de668a98d31e364f0bdc
2013-10-07 22:20:39 +02:00
7a66bd7713 Fix fdo#67908 - keep Visual around until after GL context is created.
Change-Id: Ie84decdccfa5bbf44c9cb05e2c2229f7384c1912
2013-08-13 11:05:01 +02:00
542b45af44 Mark as const
Change-Id: I0bf93f1293fb08b8b558fcac0cb496ed99ad13d9
2013-07-14 08:17:20 +09:00
a775188f6b Fix memory leak in OGLTransitionerImpl::createWindow.
XFree the result of glXChooseVisual, glXGetVisualFromFBConfig and
glXGetFBConfigs when done.

Change-Id: I145c7f5f083718d983ccea4b534d4e90056eb14e
Reviewed-on: https://gerrit.libreoffice.org/4195
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-06-10 04:58:56 +00:00
c32c11fbd4 MPLv2 subset improvements. 2013-06-04 17:45:42 +01:00
5e7c0378c2 slideshow: that define causes -Wunused-macros with 10.6 SDK too
So since that is the new baseline let's get rid of it.

Change-Id: I20e921afca5e66f22d5403f383fb9fd5f0591142
2013-04-10 16:21:41 +02:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
07c9bb1038 Drop workarounds for Mac OS X SDKs 10.4 and 10.5
Change-Id: Ifa07f9b5613b4a75c5b72178cb276b9c0b495a62
2013-04-07 03:04:31 +03:00
ce1cce54ec At least Mac OS X SDK 10.7 does not need that
(causes -Werror,-Wunused-macros, rather)

Change-Id: Ic8449c7794739033ddf1f6227f025ce4a0c899d0
2013-03-27 14:07:15 +01:00
a6b9173005 fdo#60148 Clean up warnings from the Clang compiler plugin
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671
loplugin: clean warnings: unused variables, incorrect indentation and log area.
Reviewed-on: https://gerrit.libreoffice.org/2544
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-06 12:59:26 +00:00
969a8c566d coverity#982270: fix copy&paste error
Change-Id: I845a858935cf00ff3b07dbfead8e827820329309
2013-03-03 09:10:10 +01:00
5a68d2cbe2 Fix member variables not initialized in constructor
Change-Id: I17275e7e17f76da967d2fa798f5ee88b50fd6d72
Reviewed-on: https://gerrit.libreoffice.org/2121
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-12 15:30:01 +00:00
e103887c8c QUARTZ is equivalent to MACOSX
So just check MACOSX in the sources, and don't pass any -DQUARTZ to
compilations.

Change-Id: Ia1de6024810f81f1eea01b8eb0b885d9d1ee8e20
2013-01-11 11:16:59 +02:00
4d23222b15 Avoid crash
(But the OpenGL transitions aren't really usable on the Mac. At least
not when built against the 10.7 SDK.)

Change-Id: I6b65b417a40be182b7b4077b420b4bdb52fb67c4
2013-01-11 11:13:06 +02:00
90ef2f1d63 I meant -1 of course, not -127
(As the signed char equivalent of 255.)

Change-Id: Iefb3ebdcf324f0a1925bb3e5d01d7d86e5c62482
2013-01-11 07:09:00 +02:00
294ec42e76 Copy/paste error
Change-Id: I9e4ba84eb1cc3dff8c39369a9da32dd49839ecef
2013-01-11 00:03:34 +02:00
ab4a0f1165 Add note that these files are unused
Change-Id: I7fd226bf61d9983d843453919a0406442daaea70
2013-01-10 23:59:06 +02:00
e2eb5c8d60 Rename the "unx" folder to "generic" to match reality
Change-Id: I73eb1f36e2a7be5d97e8da837bbf4ffad8282897
2013-01-10 23:53:43 +02:00
bb981d3687 We always define QUARTZ for Mac OS X
Change-Id: Ifc780f9afa0b52f260fdb7cb596db985d5bf0638
2013-01-10 23:53:42 +02:00
b51d0ec93d Make the OpenGL transition code buildable for Windows
Whether it works at run-time is another question;)

Use the same source files as for X11, with relevant conditional
coding.

The Windows OpenGL import library corresponds to OpenGL 1.2, so we
can't directly use APIs from OpenGL 1.3 or newer. (Even if they as
such are present in the "Mesa" headers we use.) So look up also
glActivetexture() dynamically.

Change-Id: I2280e2ad7e190356e9409cc28142fa9fc33e078b
2013-01-10 23:53:41 +02:00
6312695ad6 The "unx" and "win" OGLTrans_Shaders.cxx files were effectively identical
Just some OSL_TRACE/SAL_INFO changes in the "unx" one. And it isn't
like the "win" one would actually compile for Windows as is anyway, as
it unconditionally uses glX stuff. So certainly it is better to have
just one copy, and if we want to make the OpenGL transitions build on
Windows then add ifdefs for Windows to it.

Change-Id: If6887e24a0fc03c7e0e77f003d08feb51c264f30
2013-01-10 14:59:40 +02:00
a4c7ded1fd Cleanup: #include <tools/gen.hxx>
Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530
Reviewed-on: https://gerrit.libreoffice.org/1484
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-01-07 13:14:57 +00:00
3d623f3933 Remove some unused functions
Change-Id: I618de5d34d891b1b183cca12b71aff4128b2f92e
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1517
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2012-12-31 10:23:16 +00:00
a1ff0ec108 Fix 'Primitive::operator=' should return 'Primitive &
I applied the same for Windows part, hope there won't be any building pb

Change-Id: Id62c8c5f60e7a525d82c36ced944b71cc5c28b78
2012-12-27 20:36:21 +01:00
7f78980ea2 WaE: non-constant-expression cannot be narrowed to float in initializer list
More of the -Wc++11-narrowing warnings.

Change-Id: If371de0f480119d9b6f5fdc10b67484eb63c9d61
2012-12-10 09:36:36 +02:00
4689f1c4cf -Werror,-Wunused-function
Change-Id: Ida1f703b4552d891f8fe3defd373ec45697ae5b5
2012-12-06 15:04:09 +01:00
60f6c7578b fix first run of shader-using 3D transitions
The slideshow engine emits viewChanged() immediately after the
transition has been initialized. Because the ShaderTransition data were
not fully reset in finishTransition_, no transition texture would be
generated on the re-initialization in viewChanged(), thus there would be
no transition on the first slide.

Change-Id: I04fef9a6c09537995d83889be2fe15569a1ddc2c
2012-11-28 12:14:20 +01:00
5ff406634d fix 3D slide trans. initialization
Change-Id: Iafec5485d0a097f386070370b989d5e77f631d99
2012-11-28 12:14:19 +01:00
db4aab0e11 Remove some newly tagged unused methods
Change-Id: Ie55dfd19f223df62c091ffc4fdf28789b308a1c7
2012-11-23 22:39:04 +01:00
642b86aa54 fix 3D 'fade' transitions
* canvas bitmaps created without transparency get an appropriate color
  space
* implement a color space for OpenGL RGBA to use instead of
  canvas::tools::getStdColorSpace(), which apparently uses VCL's
  interpretation of alpha (alpha == 0xff means full transparency,
  alpha == 0 full opacity).

Change-Id: I97f30533206b75132abd0bb0d290a279f15ae8a9
2012-11-22 10:47:16 +01:00
d6ce23bbf2 refactor OpenGL transition creation
Change-Id: I1f2de591906f3560cc60d1323e8dcfb66448f4eb
2012-11-22 10:47:15 +01:00
302f567e83 make conditionally-compiled code easier to read
Change-Id: I6e855fd09ded2afc14379b75a7ab66b99588dd6b
2012-11-22 10:47:14 +01:00
ab4eb0e332 SetPosSizePixel->setPosSizePixel
Change-Id: Id1cab5b27776180cd8403af848c1294858384b4a
2012-09-28 09:18:09 +01:00
2f002e3a49 having two SetPosSizePixel is a blasted nuisance
Lets rename the multiargument SetPosSizePixel to
setPosSizePixel drop the various using Window::SetPosSizePixel
and work towards de-virtualizing SetPosSizePixel/SetPosPixel and
SetSizePixel and doing the work in a virtual setPosSizePixel

Change-Id: I7057654168001b67becee1791e97f9e9dc01f7b8
2012-09-28 08:48:39 +01:00
7fac82d6f4 convert OSL_ debug funcs to SAL_
Change-Id: I8903dd6aff6cdd6a4b24e3030309780975ea9318
2012-09-07 10:07:02 +02:00
6b84e09ff1 more refactoring
Change-Id: I2470e0d1ace4139a735e9de32c124bc054b8ff76
2012-09-07 10:07:02 +02:00
e24e04ccac refactor the OGLTransitionerImpl init. a bit
This removes some possible code paths that IMHO only added complexity
and shaves some time off each presentation start (200--500 ms on this
machine) by avoiding one call of GLInitSlides, which creates the
textures.

Change-Id: I0f66d138f14c86c87d6046276adc36072227c859
2012-09-07 10:07:01 +02:00
1d5d8584a3 shuffle #ifdefs around a bit
Change-Id: I93b7c3796acf2da0ba28d3ae61aab4e15681683f
2012-09-07 10:07:01 +02:00
c0582db6f9 more indentation fixes
Change-Id: Ia4a3a2aede8240d98423dbf78da15b95e19bfa5b
2012-09-07 10:07:01 +02:00
07bb32fdcb drop useless nested anonymous namespace
Change-Id: I0876e253b69fa4ec8262946339bb643aa43f3bad
2012-09-07 10:07:00 +02:00
9a6544bc9f add more timing code
Change-Id: I481e1acfee06e56932bf7ba7bbe7f89f35ff0435
2012-09-07 10:07:00 +02:00
38b70b169c simplify time profiling
Change-Id: Ib5976cd3e0c6e3b90fc62fe8336317f259dd544b
2012-09-07 10:06:59 +02:00
7a545ea8bd use meaningful names for debugging variables
Change-Id: I50918435903a053ce99487c6ad48d45552358cd2
2012-09-07 10:06:59 +02:00
07f44bfd39 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I885db00df96c73c35f9c1a6add8caf6b93f7c01a
2012-08-31 09:04:16 +02:00