Commit Graph

46 Commits

Author SHA1 Message Date
Stephan Bergmann
5272bfb329 loplugin:deletedspecial
Change-Id: Ibfed67bd911579caa19ca2203f60a86a4e6d637c
2015-02-07 12:35:56 +01:00
Caolán McNamara
fd1372ba8b boost::unordered_map->std::unordered_map
you can get debug stl this way

Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-02 16:14:36 +00:00
Andrea Gelmini
da40cac540 Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12 11:04:11 +00:00
Noel Grandin
827c46e7d7 fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.

Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
Noel Grandin
60e78fbb80 fdo#82577: Handle Font
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.

Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-18 08:54:37 +02:00
Markus Mohrhard
be7d3df141 remove SAL_DEBUGs introduced earlier
Change-Id: I901188b5b0a3e64e2407d039dd80f89cce8cf6de
2014-09-02 01:31:13 +02:00
Markus Mohrhard
7741e4c2e5 some temporary debug output 2014-09-02 01:08:48 +02:00
Markus Mohrhard
5522655317 fix shader names, the .glsl is attached in OpenGLHelper::LoadShader
Change-Id: I267c1fefa5330359f3aea0d57d38a153232b655f
2014-09-02 01:08:46 +02:00
Markus Mohrhard
30cf6528cc request a legacy context for OGLTrans
Change-Id: If001121da14ca9d15f6c36af30428f1851710524
2014-09-02 01:08:46 +02:00
Caolán McNamara
efe49ba4fc coverity#1233512 Uncaught exception
Change-Id: Idc1e1e905282ff44581b26ea1557c70641abe8b8
2014-08-31 12:33:37 +01:00
Markus Mohrhard
282c16a371 fix OpenGL canvas windows build
Change-Id: Ic6ed9c69003fa79a60310dc0b010ffc0ca868791
2014-08-13 02:00:08 +02:00
Stephan Bergmann
12a1179bcb -Werror,-Wunused-private-field
Change-Id: I03d8f81b17341e128c9c0517ecca2a76f7b4552c
2014-08-08 10:10:00 +02:00
Stephan Bergmann
ac7e26e3a9 -Werror,-Wunused-macros
Change-Id: I614e1736844637eb0a5bab3830473c36d7999426
2014-08-08 10:07:47 +02:00
Markus Mohrhard
396fa3b663 reimplement custom sprite rendering with FBO
Change-Id: I8d7a54fac61a3072d4f34615e71e37c70dec4e50
2014-08-08 09:24:00 +02:00
Markus Mohrhard
779ae371b1 reuse OpenGLContext in OGL canvas
The only thing that needs to be reimplemented is the pbuffer based
custom sprite rendering. We should use a FBO with a texture backend
for that. This will also save several OpenGL context switches!

Change-Id: I4aef33ae2499e44c8b5f41c296d8721cb94a37a1
2014-08-08 09:24:00 +02:00
Markus Mohrhard
a7f3c73fd7 extract shaders to own file and use shared shader loading
Change-Id: I1af7e03a3e46f3cb49162be9351ce22f54d08c52
2014-08-08 09:23:59 +02:00
Norbert Thiebaud
cd3d26b7ed vcl consitent use of long for corrdinate
most of length in vcl are calculated in 'long'
but array of X position tend to be in sal_Int32.
As a prep work to be able to support 'double'
as the base type of Device Coordinate, harmonize
the use of 'long' for non-float coordinate.

Change-Id: I7cb33301ff6a5e2c62247b36a4e07e168a58a323
2014-07-20 22:10:59 +02:00
Stephan Bergmann
05a676e86c canvas: sal_Bool -> bool
Change-Id: I4292b0e8810fac781e64272b315dd32eced3623c
2014-07-02 11:45:45 +02:00
Stephan Bergmann
0b978f24c7 rtl::Reference fits just fine here
Change-Id: I268f6d2577b727c6aa072ee766b3f5f41bdb131b
2014-06-18 11:26:32 +02:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Noel Grandin
f0ae48b684 remove unnecessary NULL parameter passed to UNO Exception
.. now that we have a default value for that parameter

Change-Id: I54d6b0a0a01ce2f2e5168ada0c427424de0477bc
2014-05-29 09:01:40 +02:00
Noel Grandin
81bd29a61e canvas: sal_Bool->bool
Change-Id: I0f0fe3bb937299b4f00a46d7dda6764c9d21a18f
2014-05-08 11:44:53 +02:00
Noel Grandin
4f9b21248f simplify ternary conditions "xxx ? yyy : false"
Look for code like:
   xxx ? yyy : false;
Which can be simplified to:
   xxx && yyy

Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-05-05 12:47:48 +02:00
Noel Grandin
7d2cf38366 canvas: sal_Bool->bool
Change-Id: I0f7e1ff88f91ded1bc4c45769d7e378db8698332
2014-05-02 08:49:22 +02:00
Stephan Bergmann
6ac0e1399a Remove silly PUT_SEMICOLON_AT_THE_END
...and rather live with macro calls not terminated by semicolons until those
macros are gone for good anyway.  Completely remove unused
DECLARE_UNO3_XCOMPONENT_DEFAULTS.

Change-Id: I0d4eb5a91736004b0da2b09fce860e57f6d1ddbd
2014-04-07 17:27:39 +02:00
Noel Grandin
5babf1b903 remove unnecessary scope qualifier from sal_Bool uses
i.e. convert "::sal_Bool" to "sal_Bool"

Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03 13:54:02 +02:00
Stephan Bergmann
362d4f0cd4 Explicitly mark overriding destructors as "virtual"
It appears that the C++ standard allows overriding destructors to be marked
"override," but at least some MSVC versions complain about it, so at least make
sure such destructors are explicitly marked "virtual."

Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01 19:22:54 +02:00
Stephan Bergmann
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
Stephan Bergmann
268be3ac88 Mark overriding DisambiguationHelper class template mem funs as SAL_OVERRIDE
...which reveals that some uses are not derived from XEventListener, so re-
introduce BaseMutexHelper as an alternative (which originally got superseded by
DisambiguationHelper in 09b546cf9c "Fix
overloaded-virtual warning in canvas").

Change-Id: I1418370733b72526ec481b70fa69f03e7c28b7ce
2014-03-12 16:24:39 +01:00
Stephan Bergmann
19edde1840 Mark overriding BitmapCanvasBase class template member funs as SAL_OVERRIDE
...which reveals that SpriteCanvasBase is not derived from XBitmapCanvas, so
split up BitmapCanvasBase (just XBitmap) and BitmapCanvasBase2 (plus
XBitmapCanvas) and make IntegerBitmapBase directly abstract over those two as
arguments.

Change-Id: Ieae87fe466bb9f1a861c8a95162ef25235ae5799
2014-03-12 16:24:38 +01:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
8747200c87 Remove visual noise from canvas
Change-Id: I0f01a4064ab6d1f55647ecdc1a8710e289e5d96c
2014-02-25 21:29:36 +01:00
Caolán McNamara
1491cea2c7 coverity#1103731 Uncaught exception
Change-Id: Ia56720a1dbc209b048cb9285266e8d897b37cf29
2014-02-11 14:33:38 +00:00
Stephan Bergmann
fe23abd381 Be explicit when using bool as integral value
Change-Id: I3a6b9df9b1b6c48d5db506942d651f66cefdaa18
2014-01-10 17:36:04 +01:00
Norbert Thiebaud
4c539fac01 vcl get rid of xub_StrLen and STRING_LEN in outdev3
a new log section (sal.rtl.xub) is used to display alert in case of
suspicious len == 0xFFFF (aka STRING_LEN)

Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e
Reviewed-on: https://gerrit.libreoffice.org/7117
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-12-18 01:54:16 +00:00
Stephan Bergmann
9ed364774c Adapt all (non-extension, SharedLibrary) .components to environment="..."
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17 11:06:00 +01:00
Thorsten Behrens
8840cdc977 Revert "add dummy oglcanvas::SpriteCanvas::copyRect so this compiles..."
With the XCanvas / XBitmapCanvas revert in, this can go, too.

This reverts commit f0d93fab3e.
2013-11-29 18:38:16 +01:00
Michael Stahl
f0d93fab3e add dummy oglcanvas::SpriteCanvas::copyRect so this compiles...
Change-Id: I5c6986b4c765c8328cacb84ce84cc99eb6871d0a
2013-11-28 22:06:55 +01:00
Thomas Arnhold
07fc8122f4 fixincludeguards.sh: canvas
Change-Id: I2fb527c2cb5814b15862144baf3783d226e675ef
2013-11-05 09:28:51 +01:00
Thomas Arnhold
bb142943a3 fixincludeguards.sh: canvas
Change-Id: I5b17411c58e5c5ae7b473d263fa5e4ee97ff35c8
2013-10-28 15:16:18 +01:00
Caolán McNamara
2f6b2cf6e9 CID#1103749 unintialized member
Change-Id: I33f92b9fc6adc6fabc9732c4e62e7331e0baba25
2013-10-11 08:57:16 +01:00
Thorsten Behrens
7727b9e88d oglcanvas: OUString cleanup
Change-Id: If37ea29ba239c0affd8e5777c82db755ee03f1c2
2013-10-09 20:09:12 +02:00
Thorsten Behrens
1aae965d44 oglcanvas: ship comp registration, return device window.
Change-Id: I6c7e9416f908fd3b903eaef82492c1f4445b4e0c
2013-10-08 12:33:50 +02:00
Stephan Bergmann
2f5f2c7d3c -Werror,-Wunused-private-field
Change-Id: Ie8aaab5fb6042c4845cb5355db2ee1a1c66d9d92
2013-10-08 09:25:52 +02:00
Stephan Bergmann
be0db4421e We're still stuck with boost::unordered_map
Change-Id: If6d59fefd35541a53405dab13188a217c48ad52c
2013-10-07 21:14:30 +02:00
Thorsten Behrens
e52f1bd7b3 Add opengl canvas implementation.
Adds opengl canvas implementation - display-list-based, all
rendering done as textured geometry. Needs shader support.

Currently compiles and works on Linux, Mac should be ~easy to
add, win32 eventually.

Change-Id: Ibf3eb88d6a36a91b2960a3a6320d708160e4fc14
2013-10-07 17:33:45 +02:00