summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-09-04fix slider drawing, change to always draw the whole widgetTomaž Vajngerl
Change-Id: Ifca2f72962b808a355bd7dcc20babaeb61272bf8
2015-09-04vcl: replace boost::ptr_deque with std::deque<std::unique_ptr>Caolán McNamara
Change-Id: Id53ee54dda5454669affd5ca5324a2d7c5387063
2015-09-04Related: tdf#92982 vcl rendercontext: optimize non-buffered paint of CursorMiklos Vajna
Change-Id: Ic8065d4f656d42f1e2e7d8b4c602010fa0ae2d34
2015-09-04convert Link<> to typedNoel Grandin
Change-Id: I2136c3db2742afcb4722f69297276bea1e0119f4 Reviewed-on: https://gerrit.libreoffice.org/18306 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04remove unused Link<> fieldsNoel Grandin
Change-Id: I81401ae6d1b1e95375bf4a5792b3b83189be5683 Reviewed-on: https://gerrit.libreoffice.org/18304 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-03tdf#93892: Un-share maUserBuffer when the BitmapWriteAccess is requested.Jan Holesovsky
Otherwise Bad Things Happen, and we may accidentally overwrite random other / shared data. Change-Id: I463354a6e910a2cb43faa229708fe5c14c79535a
2015-09-03Fix mis-mergeStephan Bergmann
...where fb6f2e1109abdd09e80dbcd6660a9530fc06ff0f "Resolves: #i121407# Gallery reorganizations..." first cherry-picked the younger 8012fae6cedcf325130d70adf0a486e8918f452f before f7d373d18f965b36f310d44044bdba6476f6eb03 "Added ColorDepth change test with assertion to the Bitmap::Scale method" then cherry-picked the older 4be8cc079667cca2cae91dba9e46c16ccff1537f, leading to the two checks at the top of Bitmap::Scale to not return early as intended. Thanks to clang-tidy clang-analyzer-deadcode.DeadStores for flagging this. Change-Id: Id89cc517a9f7efdff040c70f3b0e640d969cf24d
2015-09-03clang-tidy clang-analyzer-deadcode.DeadStoresStephan Bergmann
...given that setting bCalcPortion to false is always followed by a break out of the while loop ever since the code's inception in 8ab086b6cc054501bfbf7ef6fa509c393691e860 "initial import," bCalcPortion is apparently always true when read Change-Id: I83ba29a78512360500a0c9c8c1baf1ccbad87951
2015-09-03clang-tidy clang-analyzer-deadcode.DeadStoresStephan Bergmann
...of computing nDraw, since 04c037d8a8f1ca954181d75ab3a7cc648a5d1d63 "refactor ScrollBar to use RenderContext" replaced call to ImplDraw(nDraw,this) with call to Invalidate() Change-Id: Ifb9a2494715363c35c19574e85852b488667f97e
2015-09-03clang-tidy clang-analyzer-deadcode.DeadStoresStephan Bergmann
...the two consecutive writes to nX had been like that ever since the code block's inception in 4716735ba7d0ad133ff018481f94d6b4f201bbd9 "#103362# improve positioning and resizing of system windows," so assume the first one is indeed unnecessary. Change-Id: I52a9a8a15fa38a0d14f9e521e15b7f71013f46c0
2015-09-03clang-tidy clang-analyzer-deadcode.DeadStoresStephan Bergmann
...at least since the commented-out code using it got removed with 99f58dc2a6d9d2976948b2fe01b1ed1ae63d685e "vcl: remove dead code and useless task comments from winproc.cxx" Change-Id: Idddd3af6d667370cb937aa065382c1913ab8e911
2015-09-03tdf#93870 - GL accel. via VCL canvas for presentations when GL enabled.Michael Meeks
Change-Id: Ia31a88cb3d9e6baa987b22f77f407a3f592031f1 Reviewed-on: https://gerrit.libreoffice.org/18285 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2015-09-03Restored missing includes from source files.Ashod Nakashian
These source files relied on pch to include these missing headers (at least on Windows). Also included the script used to find the missing includes. The script is self-contained and includes unittests. It detects superfluous includes and required includes (which was used to restore the includes in this patch). Change-Id: I7ee09e5c712f42d5f6c3524898bc62dda78f5cc0 Reviewed-on: https://gerrit.libreoffice.org/18208 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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-09-03convert Link<> to typedNoel Grandin
Change-Id: I8bea5ac685b0076649412bd95501461242797d77 Reviewed-on: https://gerrit.libreoffice.org/18266 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-03convert Link<> to typedNoel Grandin
Change-Id: Ic0482dc5ed26eb2fc6ccde73022eff8b4786de83 Reviewed-on: https://gerrit.libreoffice.org/18258 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-03opengl: let OutputDevice do the bezier subdivisionTomaž Vajngerl
Change-Id: I0620cd29695d792320c6e3209dff84822485d883
2015-09-02Resolve merge failure: an OutputDevice parameter not WorkWindow.Michael Meeks
Change-Id: I366fcab22550f5d386af7ed3be0ad25456317b7d
2015-09-02Add another vcldemo OpenGL test to try to catch another Windows nasty.Michael Meeks
Change-Id: I43e48617617e89f5aa089ef1487215c5b81c50bc
2015-09-02tdf#93867 - clear current GL context before thread switch.Michael Meeks
Fixes regression from otherwise a nice cleanup in: d20092259c7ea63885a539f911788715f8147ee9 Also get polarity of debug logging only with a context right. Change-Id: Id322471f01e5656e758aefc57b0d4d5ad073ec54
2015-09-02Don't call GL debugging methods if there is no context.Michael Meeks
Change-Id: Ie6b824953b8ad19fd1b6a146cb6bf52bbb152ef7 Reviewed-on: https://gerrit.libreoffice.org/18276 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-09-02Add SAL_DISABLE_GL_WATCHDOG env. var for obvious reasons.Michael Meeks
Change-Id: Iec7cb6504a389972d8187954d5ed7aff94f2e01c
2015-09-02tdf#93859 opengl - don't cache radiobuttons, refactor code dupl.Tomaž Vajngerl
Radio buttons and check boxes can't be cached with current framework as they have an additional rendering state provided in additional data. Refactor code to control which controls can be cached in one place only. Change-Id: I095a01cbf5dde013247d70ada89020f64c8c6510
2015-09-02tdf#93857 opengl: adapt UniscribeLayout's DrawCachedGlyphs() to FillDXArray()Miklos Vajna
The problem was UniscribeLayout::DrawCachedGlyphs() counted the total advance value unconditionally from mpGlyphAdvances, while UniscribeLayout::FillDXArray() (which provides advance values to e.g. Writer) only used mpGlyphAdvances in case of NULL mpJustifications. Fix this by first checking mpJustifications in UniscribeLayout::DrawCachedGlyphs(), too. With this, e.g. typing "x" in Writer 10 times will not result in a "misplaced" cursor caret. Change-Id: I16c7a258ff77b25c5121b9b974e72ad6efe5e9fc
2015-09-02vcl: rename DESKTOP_KDE to DESKTOP_KDE3Michael Stahl
Change-Id: Ie9d4d339f0fe3248a7fd7f790adcb89e660d34ec
2015-09-02ditch gnome-vfs2 supportCaolán McNamara
Change-Id: I882c04fd3a255f55511b1884157de26e7574e6db Reviewed-on: https://gerrit.libreoffice.org/18262 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-02tdf#93850 - Defer watchdog during shader compiles.Michael Meeks
Shader compilation can take a while the first time; best not to disable GL at that point. Have more of a hair trigger at other times. Also explicitly exit if we appear to have hung in std::abort handling. Change-Id: I45f0873672f950fb3baba0ca859d854a0bb25064
2015-09-02tdf#93839 - Encourage vdevs to pick up new GL Contexts for Linux.Michael Meeks
Change-Id: I1c40df21a1b1b6d0637f399cf29ca4f49a81d183
2015-09-02windows opengl: Avoid an unnecessary wglMakeCurrent() call.Jan Holesovsky
Change-Id: I1c1287a29067c053565c49c0ce96918a2d27d87f
2015-09-02SetXXX(bool) with a default value of false are just wrongNoel Grandin
Change-Id: I4888d0474199bb10ca81d1ad03118a150f574671 Reviewed-on: https://gerrit.libreoffice.org/18235 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-01More useful param typeStephan Bergmann
...for arg that ultimately ends up as const GLVoid *pixels arg to glTexImage2D Change-Id: I69ba2f1dd397fa103f3f59638bec727add3caed7
2015-09-01More vcl unit test headers for good measure.Michael Meeks
Change-Id: I55df85df2d01c322e5725fb2844333f967ef48e2
2015-09-01vcl: evidently that test needs glew headers nowMichael Stahl
Change-Id: I6c9742c8be222a33feea9f6291b29dde73869a93
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