summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-09-01Fixup CRC related unit tests for now.Michael Meeks
Change-Id: If15e30908103780d5d01191ee98f390dbebfc1d3
2015-09-01Tweak VCL unit tests for OpenGL.Michael Meeks
Change-Id: Ia36f8424226da4e66ae991abd4d6f24604db324c
2015-09-01WaE: C-style cast from const sal_uInt64 * to sal_uInt8 * [loplugin:cstylecast]Tor Lillqvist
Change-Id: I2ab166ab0286213bf61f83fc257a3cc7123413c6
2015-09-01WaE: 'updateChecksum' overrides a member function but is not marked 'override'Tor Lillqvist
Change-Id: Ic2230e1d1f54e27d4189fc56b525a7e76ddab649
2015-09-01windows opengl: When the 2nd param is NULL, the 1st is ignored anyway.Jan Holesovsky
Change-Id: I840e8bb2d2ccae869c330bb32dba484b4a835a51
2015-09-01Removed the crc table from the check-sum headerMarco Cecchetti
Now can be accessed through the vcl_get_crc64_table() function Change-Id: Ife85dde373a48652a0d67460184c1f325eb91702
2015-09-01Modified CRC test in order to fix test failure on OSXMarco Cecchetti
Change-Id: Ic3fa76557746242ca99e3ce63ea73ec1d2b11f50
2015-09-01tdf#93532 - Bitmap CRC unit tests.Michael Meeks
Change-Id: Ic75801d7ad941ba802ffe418d5c666b1e7b0e94f
2015-09-01Removed no more needed code in ImpBitmap::ImplGetChecksuMarco Cecchetti
Change-Id: I647941591615733caa546a8710817616923afa85
2015-09-01gl-checksum: added a minimum size check for using GL versionMarco Cecchetti
(nWidth * nHeight) < (1024*768) || nWidth < 128 || nHeight < 128 Change-Id: Iedda6a333958c76c19b837890eb3fa28e631bc90
2015-09-01CRC is an integer type -> mnChecksum.Michael Meeks
Change-Id: I9e4d36105a59c5f81677d8e062106dae6f709464
2015-09-01fix: buffer was released before getting checksum.Michael Meeks
g Conflicts: vcl/inc/salbmp.hxx Change-Id: I57d1e4b8e4909ce0b82c9e61ca271768cc73cd8b
2015-09-01switch to 64-bit checksum: conversion from BitmapChecksum to an octet arrayMarco Cecchetti
Defined BitmapChecksumOctetArray which is an array of bytes whose size is the same of BitmapChecksum. Defined a routine for converting a BitmapChecksum into a BitmapChecksumOctetArray. Change-Id: I70d17ab8b841795ae27c60b418d6b090bff604bb
2015-09-01vcl_get_checksum wraps the call to the real checksum functionMarco Cecchetti
Change-Id: I72916f18966756ecc99e77f1b164e99377eb456e
2015-09-01Switching to 64-bit checksum: substituted sal_uLong with BitmapChecksumMarco Cecchetti
A typedef sal_uLong BitmapChecksum; has been added to include/vcl/checksum.hxx Wherever needed sal_uLong and sal_Int32 has been substituted with BitmapChecksum. A BITMAP_CHECKSUM_BITS constant equal to the amount of bits used by the BitmapChecksum type has been defined and used in `GraphicID::GetIDString` (vstools/source/graphic/grfcache.cxx). Change-Id: I74bd285089e58a8b18c06233d75b87023c7bf31b
2015-09-01moved chechsum.hxx in include/vclMarco Cecchetti
Change-Id: I70f82f16d5907ce0bbe2d838c4acee226886aab2
2015-09-01Added support for computing 64-bit checksum of bitmap in OpenGLMarco Cecchetti
Added a C++ and a GLSL implementation of a 64-bit CRC algorithm. Changed hardcoded checksum value in ooxmlimport unit test (testN777345). Change-Id: I16bb985a14866775efda49e21fe033ff64645896
2015-09-01tdf#93838 windows opengl: fix vertical text position in UniscribeLayoutMiklos Vajna
For one, aPos.Y() is meant to be the baseline position of the text. Based on the MSDN documentation and <https://www-user.tu-chemnitz.de/~ygu/petzold/ch05c.htm>, that means if we want to get top position, we have to only extract tmAscent and not tmInternalLeading. For another, ImplWinFontEntry::AddChunkOfGlyphs() adds a border of 2 pixels both horizontally and vertically, which means that then we need to undo that when counting the vertical position, too. Change-Id: I4ac8e881ea5910662674c2a1b53ece943487ccd9
2015-09-01tdf#93839 - Encourage vdevs to pick up new GL Contexts when they go invalid.Michael Meeks
Change-Id: I21726d0dd052fdc87e8dd36ff7122518325f6313
2015-09-01windows opengl: Call InitGLEWDebugging() after we have the context.Jan Holesovsky
Change-Id: I1582443cf6799dd73a3909660d524eaacbc2d909
2015-09-01windows opengl: Don't paint cached widgets upside down.Jan Holesovsky
2015-09-01Revert "windows opengl: Set PFD_DOUBLEBUFFER even for single buffer rendering"Miklos Vajna
This reverts commit 6fd7199230bfc81d6aadf53b3c115def8caba90c. Kendy says the original problem can't be reproduced anymore, and most unexpected flickering goes away with this for my nvidia card. Also, it's a good idea in general to keep PFD_DOUBLEBUFFER and WGL_DOUBLE_BUFFER_ARB in sync, which is now the case. Change-Id: I7a809d1c85be4206c01720d5de9b0a5617a59c87
2015-09-01opengl: use "old" SubdivideBezier when drawing PolyLinesTomaž Vajngerl
SubdivideBezier creates polygons which are more exact for drawing in opengl when drawing hairline PolyLines - so let's use that with AA line drawing. Change-Id: I490fd0f19361b5fc9e1f4e03851c1ae1a1f75f71
2015-08-31loplugin:staticmethodsStephan Bergmann
Change-Id: Idfc691a92d0cba72289699609cb99bce35aaade9
2015-08-31tdf#93822 - disable horror legacy menu background saving for OpenGL.Michael Meeks
Change-Id: Icaa5fb197f3fa234da4538a2a7b21131cab89277
2015-08-31tdf#93772 - handle framebuffer unbinding on GL context switch.Michael Meeks
Also start gl tests in vcldemo: $ SAL_FORCEGL=1 vcldemo --gltests Change-Id: I8f0022770d57cd60c830659e3f7fcc0721320a10 Reviewed-on: https://gerrit.libreoffice.org/18132 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-08-31tdf#93751 - ensure textures are unbound from framebuffers post destroy.Michael Meeks
Change-Id: I81aec0e6f8db57905826c54c3442528be6068700
2015-08-31Extended GL painting debug tracing.Michael Meeks
Change-Id: I52158729d240ca3cb9e7977bc6d1f5acb14437ad
2015-08-31tdf#93750 allow for EMF+ record padding up to 11 bytesMike Kaganski
When an array of EMF+ has extra bytes in the end, that are less than 12, they should not be treated as another EMF+ record, but simply ignored. Change-Id: I34701c00916812c8a6a4b69730f602da81719b35 Reviewed-on: https://gerrit.libreoffice.org/18110 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-08-31other bitmap methods check for bad_allocCaolán McNamara
Change-Id: Ic1083fdb566de0b5487b92197f33070ef42146f7
2015-08-31Compensate for the extra two pixels in ImplWinFontEntry::AddChunkOfGlyphs()Tor Lillqvist
Should do similarly for vertical text, too. Change-Id: I51f5ee3ba1686f151b04f98c43388e0bdfac97fb
2015-08-31vcl: try to disable font cache in CppUnit testsMichael Stahl
With size 1 every ImplFontEntry should be immediately deleted, which makes tools like valgrind and drmemory more useful. Change-Id: Idec40c7cf7d927146f23830a42b3464c1675207f
2015-08-31check stream statusCaolán McNamara
Change-Id: I27bb289288d319a93201e9c3d703114924ca258c
2015-08-31vcl: Improve management of mnRef0Count.Jan Holesovsky
Follow-up to 34700400247e378e074ce4164ab2809edb092201; this fixes sw_ww8export unit test on Windows. Change-Id: Ic0c3228efb59a182e1562b73117418cd8b5e6017
2015-08-31Revert "werror: fix build in vcl"Thorsten Behrens
This reverts commit 5191fcb11688ef8f4ec312293e57e151762c6952. Earlier, better fix was 831c69f9397ed813364235dddf465996d361d0a8
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann
Change-Id: I83f45260158f5282b857458046d2e324be85a7b5
2015-08-31tdf#93798 - avoid apitrace provoked infinite loop dumping errors.Michael Meeks
Change-Id: I6c42e6a9ead90ed6fad2f289cd686a72cffa0c2d
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann
Change-Id: I69c2c27af718b1d3ff35348a69d8b57914e5ae82
2015-08-30GTK3: Native background for vertical toolbarsMaxim Monastirsky
Change-Id: I19483c3aa4d37e0f4fe159139c85d0a31f002b5a
2015-08-30tdf#62525 vcl: use cow_wrapper for GradientDaniel Robertson
Convert the pimpled copy-on-write Gradient class from vcl to use ::o3tl::cow_wrapper using the default reference counting policy. Change-Id: Iadf4d2288669e58a4d5b41f436978c3ab34216f3 Reviewed-on: https://gerrit.libreoffice.org/18124 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-30Don't check SAL_DETAIL_ENABLE_LOG_INFO, check SAL_LOG_INFOTor Lillqvist
SAL_DETAIL_ENABLE_LOG_INFO is always defined, as "true" or "false". It is SAL_LOG_INFO that is defined or not, and can be used to avoid unnecessary non-trivial code that the compiler might not be able to optimise away. Change-Id: I9903faab64b39fee86bff3b085cdce3614b0d921
2015-08-29tdf#93536 - avoid crash when calling ToTop on disposed window.Michael Meeks
Change-Id: I677f47f6b60271dc56c9d3d123cf982c00866eb9
2015-08-30werror: fix build in vclThorsten Behrens
Change-Id: I30f9e1858c90943e1d369aeea02e10d8037a4ca8
2015-08-29sal_uLong to sal_uInt32 for CRC32Matteo Casalin
Change-Id: Id13e07f479615b8eb39d05e6534f514277cc3d03
2015-08-29we only use 8 array entriesMarkus Mohrhard
Change-Id: Ie85fa48906e1e6b8c19e2daba65517ea923be457 Reviewed-on: https://gerrit.libreoffice.org/18071 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-29WaE: 'rChunk' : unreferenced formal parameterTor Lillqvist
Change-Id: I1491ea35af3b8237a9b8f6357e6452b323139e99
2015-08-29Avoid unintended unconditional std::cerr debug outputTor Lillqvist
Can't call a function that as a side effect prints to std::cerr in SAL_INFO. It will be called even if the log area doesn't match $SAL_LOG. Just use only SAL_INFO and no plain std::cerr output. It's fine to output a string with embedded newlines in SAL_INFO. Also drop the debug output line with the glyph start positions, it was less than useful. Change-Id: I9fb5ed068aae1b835e20cf1ec1097bcd55deb05d
2015-08-28vcl: fix resource management issue in WinSalLayoutMichael Stahl
Since commit 65a66d41fd0e13d0aad9df935091b731b4af650a the sd_exports_test crashes on Windows in UniscribeLayout because it uses a ImplFontEntry that has been removed from the font cache. Tweak the refcount in WinLayout so it will be valid. Change-Id: Ic4bf984ea9fd70de9fa95ca964ae12d95d47d5bf
2015-08-28Add missing helpful GL trace messages outside of the impl. itself.Michael Meeks
Change-Id: I5b71e3c9edc3e1e89e52c2e17b5fe0a025ac66ea
2015-08-28Avoid accidental leftover unconditional debug printoutTor Lillqvist
Change-Id: I67d2430aec782efa7916856584028f469d39355c