summaryrefslogtreecommitdiff
path: root/vcl/Module_vcl.mk
AgeCommit message (Collapse)Author
2016-09-29vcl: test JPEG reading - RGB, CMYK and grayscaleTomaž Vajngerl
Change-Id: Ice713966b9c721472441478c965212b5c8f74acd Reviewed-on: https://gerrit.libreoffice.org/29368 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-08-30Disable CppunitTest_vcl_wmf_test under --enable-merglibs for nowStephan Bergmann
...the problems caused by that test having the vcl objects linked into both the test's library and the mergedlib (which the test's library links against) are just not manageable. Change-Id: I6976407275f1f8d8cebfe2dfc6c09656a3936200
2016-08-23vcl: Adds backend tests to check for correct renderingTomaž Vajngerl
Collection of test that check rendering of VCL backend. This works by rendering primitives to the VirtualDevice, outputing the result to a Bitmap and checking the rendering by comparing pixels. This should warn when the primitive is drawn to a wrong position or if it is the wrong size or color. It also test some rendering tricks like XOR drawing. Currently this is not implemented as a CPPUnit test but separately, as its own executable file so we can check the results visually. The idea is also to add the tests into LO for the user to test or automatically to test the backend on first start (especially useful to test the OpenGL backend as some drivers could have unexpected behaviour). Change-Id: I2a565b9986ca68850e2752466e3cd5fc71991ba6
2016-08-18screenshots: add new global make targetArmin Le Grand
Up to now the screenshot creation was added/dependent of target slowcheck. Since quite some modules have added screenshot creations now, I added an own target 'screenshot' to allow to keep current slowcheck and screenshot creation separated Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18screenshots: add dialog test cases for vclArmin Le Grand
All *.ui files create a screenshot, but not all look useful Change-Id: Ie189030767feb0acafa879d6d3912851d0d6db5a
2016-03-04Don't build ui-previewer in the App Store caseAndras Timar
Change-Id: I25ca4b8672702095cc04723bc9c6bdf01a06382f
2016-02-15Unit test for opengl blocklist parsing and evaluatingTomaž Vajngerl
Parsing unit test checks that the xml values are parsed correctly and that the DriverInfo structure is populated with the expected values. Evaluate unit test checks that blacklisting / whitelisting logic blocks OS/vendor/driver/device as expected. Change-Id: Ib1b0926606f0835207c324193bbe19ba83f86bdc Reviewed-on: https://gerrit.libreoffice.org/22371 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-15Package_opengl_blacklist is Windows-specificTor Lillqvist
Change-Id: Ida79aa0d5a519a2c124d20a1cd908411d01799de
2016-02-14tdf#85761 vcl: JPEG export does not save PPI values correctlyChris Sherlock
JPEG values are currently hardcoded to 96PPI when we export JPEGs. The Graphic class doesn't have an easy way to get the PPI, but this can actually be calculated from the pref size and pref map mode (no idea why it is called "Pref"). Interestingly, you need to get a multiplier to work this out, relative to units of 100th mm. The EPS filter code had a function that does exactly this, but it's entirely based on MapMode units so it was really implemented in the wrong class IMO. I have thus moved it out of PSWriter and into MapMode. This also fixes tdf#65695, which was partially fixed, but had the JPEG PPI hardcoded to 96dpi. Also fixes tdf#97481. Change-Id: Iedb674141dd4e22fcbfb7be357dc777f732aa3aa Reviewed-on: https://gerrit.libreoffice.org/22339 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-01-21Revert "disable test that suddenly eats GBs of memory"David Tardon
This reverts commit e1367aaf7d9cc93bbbe3ba64015fde3469c61c6e.
2016-01-20disable test that suddenly eats GBs of memoryDavid Tardon
Regression since 62ea0ef8428ca4e12c5fa11674737a9bf0b646aa "replace use of basebmp in vcl entirely now". Change-Id: I196d02c20c00c938c3e298eb1a0f89029581e704
2016-01-15vcl: add symbol and charset accessors and mutators to FontChris Sherlock
Rules for the vcl::Font class for setting character set and the symbol flag: If the characterset changes to anything other than RTL_TEXTENCODING_SYMBOL then the symbol flag should be off. If the characterset changes to RTL_TEXTENCODING_SYMBOL then the symbol flag should be on. If the symbol flag is set to false and the characterset is already RTL_TEXTENCODING_SYMBOL then set the characterset to RTL_TEXTENCODING_DONTKNOW and set the symbol flag to false. However, if we are setting the symbol flag from false to false (i.e. we know the characterset) then we can keep the characterset as it is. Unit test written in this commit to test this is working. Change-Id: Iced44659ab88ff66b711c560cb68bd4681ecb537
2016-01-13vcl: Create accessor and mutator for font scaling in FontMetricChris Sherlock
This is fragile code! There are actually *two* classes that do almost precisely the same thing, they are: - ImplFontMetric, and - ImplFontMetricData They both have much in common, including their class name, and even most of their functionality. In fact, they both have common accessor functions. When I look at the code, it looks like OutputDevice is actually given an ImplFontMetricData object, which it then uses to populate an ImplFontMetric object... Basically, I'm going to merge these classes. To do so, I'm going to do the following: Step 1: Implement accessor functions for ImplFontMetric and FontMetric (then remove the friendship of this class to OutputDevice!) Step 2: Write a unit test for each accessor function in ImplFontMetric Step 3: Ensure that ImplFontMetric and ImplFontMetricData use some sort of smart pointer (probably an intrusive_ptr like I did ages ago with FontCharMap) Step 4: Merge the two classes together once their class interfaces are the same and I am satisfied they do the same thing Step 5: Find all instances of inefficient usage - for instance, I can do away with the code that copies the ImplFontMetricData attributes into an ImplFontMetric object. Change-Id: I07c1cb848774b130fa2ca60b51da53e07754dd00 Reviewed-on: https://gerrit.libreoffice.org/21399 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-10-20Add DLOPEN_LIBS to configure for some cases where -ldl is neededRichard PALO
use std::sqrt in vcldemo.cxx Change-Id: I24d8ba15ee267d0cad3b063df9b7cfd8d284f4ee Reviewed-on: https://gerrit.libreoffice.org/18591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-09-25Replace GUIBASE with USING_X11Samuel Mehrbrodt
That's what it actually means. Also make it a boolean Change-Id: I249e18351253b34b5dada28e2a9c6bc0c06b730c Reviewed-on: https://gerrit.libreoffice.org/18688 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-03remove KDE3 support, --enable-kde and --enable-kdeabMichael Stahl
With the new RHEL6-era baseline TDF can finally ship KDE4 support. Change-Id: I227278b576a3ed2f2aaa751d41b469ca92dc78b3 Reviewed-on: https://gerrit.libreoffice.org/18267 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-28Revert "CppunitTest_vcl_timer always fails on Windows for me"Tor Lillqvist
Now it works for me on Windows. This reverts commit 6e8ec907dce656b81486889bf27489ad866cebd2.
2015-08-28CppunitTest_vcl_timer always fails on Windows for meTor Lillqvist
Change-Id: I73f0771a09d3e74242b25922007c00ff77b37f8a
2015-08-23vcl: unittests for Timer and AutoTimer.Ashod Nakashian
Enabled VCL Timer unittests on Windows builds and added two unittests to detect misfiring of timer events. Due to the nature of timer events having virtually no guarantees on non-realtime operating systems, the tests may fail randomly under different system loads. The tests repeat a few times in such cases, but still there are no guarantees. These tests are added to detect gross breaks in the timer algorithms and to improve certain corner cases. They are designed to minimize any random failures. Posterity might hate me for committing such unittests, so I added TEST_TIMERPRECISION directive to include/exclude the tests at compile time. It should be enabled if it causes more harm than good. Change-Id: If2856f194cb4732c84900113bdb969f397f67d5a Reviewed-on: https://gerrit.libreoffice.org/17906 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-20more config skipping stuff and a tester toolCaolán McNamara
Change-Id: I5e93a4c84b3a0940239213766eb24d21fb5fd649 Reviewed-on: https://gerrit.libreoffice.org/17863 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-06-17install blacklist into user profileMarkus Mohrhard
Change-Id: I2571fcdde1689f1a168a5c5d6bd20785ce018927 Reviewed-on: https://gerrit.libreoffice.org/16332 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-06-05VclPtr - more extensive lifecycle tests.Michael Meeks
Change-Id: Ifb5355b3a8f33601bcec0c11ce1afe1c735695b6 Reviewed-on: https://gerrit.libreoffice.org/16100 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-04-09vcl: more rtl::Reference cleanupMichael Meeks
Change-Id: Idef6b4259d784120a06d2a6c51b77029566da59f
2015-03-27vcl: tests for Bitmap, check for symmetry when scaling bitmapsTomaž Vajngerl
Change-Id: I53d6e70018477abb9f98140a52697c1de0f90934
2015-03-20The 'svp' "plug-in" library is empty so don't build it at allTor Lillqvist
Its code is in the vcl library nowadays. Change-Id: Idb659e541226724004660102f6641c38a2312c27
2015-03-02if you link vclplug_svp to desktop you end up with duplicate font cachesCaolán McNamara
so how about we just move all of the svp "headless" stuff into vcl proper Change-Id: Ibf4ab0b0698ef031ffeeb05ef9bbcf3b89144010 Reviewed-on: https://gerrit.libreoffice.org/14714 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-07Fixup --without-x buildRiccardo Magliocchetti
Accept gl linkage in hope of future offscreen mesa support. Avoid linking with GLX though. Change-Id: I4e666f60e74fe34075a8da9eeba95807cf8fe38c Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/13452 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-12-09vcl: add new metafile viewer demo - mainly for fdo#80503Chris Sherlock
This is going to be very helpful troubleshooting problems with metafiles that just won't display. Change-Id: I661dd40e04434a9c64a0f59d9310d36444601989
2014-12-02vcl: initial outdev unit test - for VirtualDevices.Michael Meeks
Change-Id: Ia2bb1f8110c738cfbf6ff84293af115b32abeb93
2014-11-21make glxtest available in salmainMarkus Mohrhard
Change-Id: Ic8bc3f2d5d96506590d35138089ead2eac984314
2014-11-10Build vcldemo on Windows too.Jan Holesovsky
Change-Id: Ia6f7cfb819983a3a75ac78015a8eec1da539bead
2014-11-10outedevgrind: add missing makefile.Michael Meeks
Change-Id: I29d67c9ccbc4c684beb5561f74e5e69c0f0d7548
2014-11-10remove outdevgrind from build until makefile is addedMarkus Mohrhard
Change-Id: Ie339541fa57a237048470b21fd28bd4411592433
2014-11-10vcl: outdevgrind compile it by default, and fix it up.Michael Meeks
Change-Id: I4bdad4a0eb65991cd9faa9452485c64120b8b6dc
2014-11-10extract shaders from source codeMarkus Mohrhard
Conflicts: vcl/opengl/gdiimpl.cxx Change-Id: Ifbb55e58e0854cc491703b8ca8d8e582741a9bd9
2014-11-10merge vcllo and vclopenglloMarkus Mohrhard
Change-Id: I419ca67dc1f87dd9ac751aa5a094fecf58136edb
2014-10-10Build icontest for OS X, too. Does not work at all, thoughTor Lillqvist
Change-Id: Id1c82638f12514f55f297ec5e4a07444849175ce
2014-10-10Build icontest for Windows, tooTor Lillqvist
Change-Id: I7c23d9a41c9b517bf8dcdd3e1de2ab24a8a1d0d0
2014-10-08Add a start on a "temporary" test prog for traditional vcl vs. OpenGLTor Lillqvist
Does nothing useful so far. Change-Id: I9d288a8b8ab92e01a28c92bb41162af4410e0163
2014-10-06vcl: FontCharMap to use intrusive_ptr ImplFontCharMapChris Sherlock
ImplFontCharMap was using it's own reference counting mechanism, however we can use intrusive_ptr more effectively. Added a unit test around FontCharMap. Change-Id: Ifab6ce002fd1df8feb7e017dea3012ff9ea7f18a Reviewed-on: https://gerrit.libreoffice.org/11804 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-09-25fdo#84000 - unit test timers / main-loop bits.Michael Meeks
At least test Unix platforms. Change-Id: I960343cb9622474fe48687a5e458e1c6dbe55358
2014-05-18vcl: don't build demos for windows at the momentThomas Arnhold
as they are broken, see red tinderboxes Change-Id: I09fed7b4c4dec0bebd9e8f85c6266688cf0d68ea
2014-05-18vcl: fix svpclientChris Sherlock
I have converted the UNO stuff to the more modern variety (i.e. the stuff that actually works now...), use GraphicFilter to get the bitmap and fixed the string copy typo. Change-Id: I6a3c1af54d222ef70814d2bb581cc2f3c058bb2f
2014-05-18vcl: fix svptestChris Sherlock
Change-Id: Ibaec6e027aa9fd61824ff6b4f1f71b69d217dfdc
2014-05-18vcl: make vcldemo workChris Sherlock
Change-Id: Icef2d988c37fb7b25245ad9f3f3856fa86f76a77
2014-05-17Don't build svdemo for Android and iOS.Andrzej Hunt
f89296db5959cf009668f8aad85cfd860b9252ee adds building of svdemo, this however uses SAL_IMPLEMENT_MAIN from include/sal/main.h -- which specifically can't be built on Android and iOS, hence we shouldn't build svdemo for those platforms. Change-Id: I6ce851ece90837112279c89467326b82f7a2070b Reviewed-on: https://gerrit.libreoffice.org/9391 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-05-17vcl: fixup svdemoChris Sherlock
Change-Id: Ifb7cc12da349fcbcd1d3dc25b64cd2bf3fd7e819 Reviewed-on: https://gerrit.libreoffice.org/9378 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-05-15wmf: test that non-placeable WMF uses correct sizesTomaž Vajngerl
Change-Id: I546d654726483b40ce4d981bc66377c8a3df6194
2014-04-15Build the vclopengl lib for Android, too, i.e. for all our platformsTor Lillqvist
Change-Id: I244eb4877801ceb0ff22e8591dccd6b801d00d68
2014-04-08Make libvclopengl build for iOSTor Lillqvist
Change-Id: Id338d1fb8a1334fb4e984aff9494bab7f3c35dc1