summaryrefslogtreecommitdiff
path: root/vcl/Library_vcl.mk
AgeCommit message (Collapse)Author
2016-06-08opengl: batch drawing of polylinesTomaž Vajngerl
To get polylines to draw in a batch it was necessary to refactor the polyline code to work with GL_TRIANGLES instead of the previous used GL_TRIANGLE_STRIP. For this and to make the code easier to handle a new class was introduced: LineBuilder, which purpose is to assemble vertices for a polyline (line ends, line joints). In addition we need to know the line width, anti-aliasing (AA) per vertex basis (in addition to color, normal and extrusion) so we can draw many polylines with one draw call. This info is now stored in Vertex struct which is used when drawing lines or triangles (fills). Uploading of vertices has also been changed, previously we uploaded the vertices with the drawcall. a convention in Modern OpenGL is however to use VBO (Vertex Buffer Object) for this. With this we can upload the to the GPU vertices independently and not upload them if this is not needed (which is currently not used yet). A vector of Vertex structs is now uploaded to the GPU using a VBO which is handeled with a new VertexBufferObject class. In addition to reduce the ammount of duplicated vertices, we use a index vector (handled by IndexBufferObject class) where we only define the indices of the vertex buffer which should be drawn. Change-Id: I49dc9c6260b459f4f4ce3a5e4fa4c8ad05a7b878
2016-06-08opengl: batch drawing of pixel, line, rect draw callsTomaž Vajngerl
Change-Id: Ib1619fa476f488c5315411b1ad4d1b7464c70c69
2016-05-19Resolve: "TODO(Q1): Make GetSystemData method virtual"Caolán McNamara
and remove the casting silliness, allowing the removal of cairo_cairo.?xx If anything is to go wrong I'd guess it'll be the windows directx stuff. Change-Id: I3e22c07b9c26ade9b27a245fdd8408de540643f4
2016-05-16tdf#97527 vcl: reference-count Menumelikeyurtoglu
Change-Id: Ia12434fede69ad247ed67691517437a9ada31acd Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/24596 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-04-08opengl: texture atlas impl. to efficiently packs texturesTomaž Vajngerl
Change-Id: I66b3eddadb172da26aa1a62f2a795895769db93b
2016-03-30vcl: same confusing condition hereMichael Stahl
Change-Id: I970bd11ac0e818290cf6c3c24314f19ae0322dd0
2016-03-30notebookbar: Rename NotebookBarWindow to NotebookBar, and move accordingly.Jan Holesovsky
Change-Id: If04a8f62aba0bcb712ae6405db318a4bd073fc54
2016-03-30Fix Android buildMiklos Vajna
Change-Id: I7247f19b03302b2270e0f6f32c6e6b6e760fd7bd
2016-03-25fix headless buildOliver Specht
disables OpenGL and glew usage, lets --without-gui do what --without-x did before and disables X related test Change-Id: I680b47c9962a0d43c8ece593db0b82e347ceebdb Reviewed-on: https://gerrit.libreoffice.org/23474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-02-26log some information about used OpenGL deviceMarkus Mohrhard
Change-Id: I0c050396e6b1efa7dd2f003a79a9dc506135197a Reviewed-on: https://gerrit.libreoffice.org/22555 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-02-19move dbus config into its own config headerCaolán McNamara
Change-Id: I5b0734a30dee323d41270de06f6a02fd676155c9 Reviewed-on: https://gerrit.libreoffice.org/22502 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-15rename X11WindowProvider to a NativeWindowHandle providerCaolán McNamara
sort of thing and genericize it Change-Id: I27e1e47f2b371e5269db079cfc1262d056105f80
2016-02-08vcl: cmdevt.[hc]xx -> commandevent.[hc]xxChris Sherlock
Change-Id: I77b30f28ae5a6fad360d7cada9acfaa9c324408b Reviewed-on: https://gerrit.libreoffice.org/22216 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-25vcl: rename private ilstbox.hxx header to listbox.hxxChris Sherlock
It actually was deliberately named "ilstbox.hxx", it wasn't a typo as it stands for Implementation (the "i") and lstbox is abbreviated, I assume because the original developers were contorting themselves into getting filenames into DOS 8.3 chars... Change-Id: I04e5927e9df754f5115829645ca0013792bf3c54
2016-01-25git: rename dndlcon.{hxx|cxx} to dndlistenercontainer.{hxx|cxx}Chris Sherlock
Change-Id: I549a17f68971f68313c6665fb4b04a88f7084ad6
2016-01-25vcl: move dndevdis.{hxx|cxx} to dndeventdispatcher.{hxx|cxx}Chris Sherlock
Change-Id: Ia9d41552a8361e086d6fcb379e041522d40fb7e9
2016-01-25vcl: rename cvtsvm.{cxx|hxx} file to svmconverter.{cxx|hxx}Chris Sherlock
Change-Id: Id896ae1360a7becaabfaab605f9f6c560813717b
2016-01-20replace use of basebmp in vcl entirely nowCaolán McNamara
we're just using it to store bitmap data and to convert to preferred destination format, so we can use the preexisting vcl BitmapBuffer for that Change-Id: I0e800956d95faddfafa53d2c48b09494a7a867c0
2016-01-15vcl: move metric.cxx to font/fontmetric.cxxChris Sherlock
Change-Id: If8e4a479967a84f7c43c762c55a3a60b7083d6d9
2016-01-14vcl: move font.cxx from gdi directory to font directoryChris Sherlock
Change-Id: I6768b37a4b0b98202b7d2410d8cbfac47dac0415
2016-01-12vcl: resplit FontAttributes from ImplFontMetricDataChris Sherlock
The change I made in commit 7b974e056df3 ("vcl: merge ImplFontMetricData with ImplFontAttributes") was... ill-advised. For starters, there really needs to be this split as FontSelectPattern needs it, and PhysicalFontFace only requires the font attributes, not the metric data. So the merge was unfortunately, in my mind, a failure and I'm manually backing it out now. Change-Id: Iac38f0815f984541e2f55099c965376dd88eeb43 Reviewed-on: https://gerrit.libreoffice.org/21380 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-12vcl: move fontcharmap.cxx to the font folderChris Sherlock
Change-Id: If764e87a90d57b473019ec96a1ef9026dc9675ae Reviewed-on: https://gerrit.libreoffice.org/21340 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-12vcl: tidyup file name impfont.cxx -> fontcharmap.cxxChris Sherlock
Change-Id: Ib2acc963704c7613e1d3bd1761b619ece1aef79f Reviewed-on: https://gerrit.libreoffice.org/21339 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11Remove BitmapFilterStackBlur, which is unused...Stephan Bergmann
...ever since it got introduced with 28c61871e876e6a2cac47439f768504b1a4c94a0 "vcl: stack blur implementation + basic test & performance test" Change-Id: I78672cf74c24930df92121baecb9886df4382036
2016-01-11vcl: move vcl/generic/app/ files to vcl/unx/generic/appChris Sherlock
These source files as all specific to Unix environments (not, however, OS X) and are not "generic" (i.e. used across all platforms). Change-Id: Idba1e9bbe14d8a4bb8e5dd2c2ad1dc75458da53c Reviewed-on: https://gerrit.libreoffice.org/21335 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11vcl: move vcl/generic/print files to vcl/unx/generic/printChris Sherlock
These source files as all specific to Unix environments (not, however, OS X) and are not "generic" (i.e. used across all platforms). Change-Id: I6008a272c4b961a12702e2ef8727c56df9e80164 Reviewed-on: https://gerrit.libreoffice.org/21334 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11vcl: move vcl/generic/fontmanager files to vcl/unx/generic/fontmanagerChris Sherlock
These source files as all specific to Unix environments (not, however, OS X) and are not "generic" (i.e. used across all platforms). Change-Id: I23650c86a7b74c2ac150b981e4be88eaea07e936 Reviewed-on: https://gerrit.libreoffice.org/21314 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11vcl: move all glyph files from generic to unxChris Sherlock
All the files in glyph are only used by Unix based systems, with the exception of OS X. Therefore, it's not really "generic" as in "used across all platforms" but is generic as in "used in all Unix-based systems". Change-Id: Id89c09df74f0ddafee5c88c55bac4c35f9b23ef8 Reviewed-on: https://gerrit.libreoffice.org/21312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11vcl: rename gcach_ftyp.{cxx|hxx} to freetype_glyphcache.{cxx|hxx}Chris Sherlock
Change-Id: If17c0c36108c2437accba105e11a93a009d2c91f Reviewed-on: https://gerrit.libreoffice.org/21311 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-11vcl: move gcach_ftyp.cxx to vcl/unx/generic/glyphsChris Sherlock
Change-Id: Id12edc0660a2c22c6d04b820ad052bde4fa75143 Reviewed-on: https://gerrit.libreoffice.org/21310 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-09try and fix android buildCaolán McNamara
post... commit 86d06c9102d6f59946d7fbfdee5bb40e9a6d0fc6 Author: Chris Sherlock <chris.sherlock79@gmail.com> Date: Sat Jan 9 14:41:15 2016 +1100 vcl: move some Freetype stuff away from the "generic" folder I'm not adverse to simply moving these files into the "headless" dir to further untangle this Change-Id: Ib0c697b3d829baa92195d29983d39406bb72fce8
2016-01-09vcl: move some Freetype stuff away from the "generic" folderChris Sherlock
Freetype is definitely not "generic" code. It is only used for Unix platforms, but is not used for OS X which has it's own font/glyph/text system called CoreText and that is implemented elsewhere in our codebase. Change-Id: I30b2756d2cd9a81b6f746988685295d25ba1de44 Reviewed-on: https://gerrit.libreoffice.org/21286 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-08vcl: change ImplFontEntry to LogicalFontInstanceChris Sherlock
There is a TODO in the code that suggests to do this, when I looked at the collaboration diagram on Doxygen things made a LOT more sense. Change-Id: If335498bb70872ffa5738cc5c17660faec84c35e Reviewed-on: https://gerrit.libreoffice.org/21257 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-07vcl: migrate font functions from outdev/font.cxx to own filesChris Sherlock
I have moved all ImplFontAttributes and ImplFontCache functions from vcl/source/outdev/font.cxx to vcl/source/font/fontattributes.cxx and vcl/source/font/fontcache.cxx accordingly. Change-Id: I12ca80799828a772482424da171cc76bffaac43d
2016-01-07vcl: reorganize ImplFontEntry functionsChris Sherlock
I have moved all ImplFontEntry functions into vcl/source/font/fontentry.cxx and also created a new hash function that hashes std::pair<sal_UCS4,FontWeight> types by specializing std::hash. Change-Id: Ibbe07c38b98e3c976836a895dbfdcaecd5daff8d
2016-01-07vcl: move FontSelectPattern[Attributes] to fontselect.cxxChris Sherlock
Change-Id: I41361d8dd4619a27bba5cc9ad2c627b37f1b2013 Reviewed-on: https://gerrit.libreoffice.org/21190 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-03vcl: move Windows salgdi3.cxx to salfont.cxx - that's all it does!Chris Sherlock
Change-Id: I0a49bab5f410901d40c5b3b62a5a3f9d9946b8a0 Reviewed-on: https://gerrit.libreoffice.org/21057 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-12-16vcl: Initial NotebookBar implementation.Jan Holesovsky
Re-introduced, this is still useful code to have :-) Change-Id: I91535c13d68261f7195989ec78bd305cf572c87c
2015-12-11vcl: extract scale convolution from bitmap to its own class/fileTomaž Vajngerl
Change-Id: Ibb10aa7450b78ca2709da38857f095ccbc679c54
2015-12-08Bin the pointless and thin OS X specific wrapper namespace 'OpenGLWrapper'Tor Lillqvist
Besides, the namespace was confusingly named the same as the public cross-platform OpenGLWrapper struct (which is effectively just a namespace, too). Change-Id: I9a5255ec446dcdb5086d92a742f29327d0780685
2015-12-07Make buttonstatuslistener a generic listener for any widgetsSamuel Mehrbrodt
Change-Id: I966b06e1169f8a06d08be811f78e98a2e3d7580c Reviewed-on: https://gerrit.libreoffice.org/20401 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-12-02Get rid of a superfluous directory levelTor Lillqvist
Change-Id: I79e065f0c68b149d2ef69f428d31e36e97a6098b
2015-11-23Do all svp text rendering with cairoCaolán McNamara
enabling us to delete a whole pile of foo For android we patch cairo, which is internal in that case, to swap the rgb components so that cairo then matches the OpenGL GL_RGBA format so we can use it there where we don't have GL_BGRA support. Change-Id: I25e34889c7b7263438b143dd2a2ad882fb0f190a
2015-11-23vcl: simplify Image internalsTomaž Vajngerl
Image could be of 2 types - BITMAP or IMAGE, where BITMAP used to store the content in a Bitmap and IMAGE in a ImplImageData, which contained a BitmapEx. This was refactored with this commit to always store the content in a BitmapEx and there are no distinct image types anymore. This greatly simplfies the code. Drawing of the image in case of type IMAGE was done in the class ImplImageBmp which also modified the image according to DrawImageFlags (for example to create a "disabled" image). This was moved to ImplImage and the bitmap manipulation code was moved to BitmapProcessor (done in previous commits). Change-Id: Iec9f63a7c05618c457d8465f1ec60ed4f16bd579
2015-11-20Revert "vcl: Initial NotebookBar implementation."Samuel Mehrbrodt
Will use a different approach for NotebookBar. Also this should not be in 5.1. This reverts commit 8c1014021dbe9da2e18233d215b970f5359db67b. Change-Id: Ic699723818a890bf4c3be3a2c045527148bd118b Reviewed-on: https://gerrit.libreoffice.org/20075 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-19We don't actually use GLyphy on Linux yetTor Lillqvist
So don't link with it, to avoid pointlessly depending on the very new glyphy package in Debian. Change this back once needed, after 5.1 branch-off. Change-Id: I4e2e873858841429738e2992676a0142acc528ee
2015-11-19Use GLyphy for text on Windows (broken)Tor Lillqvist
Work in progress. Produces visible text in some cases, but not nearly all. The text that is visible is roughly in the right place and of the right size, but horribly ugly. Compare to glyphy-demo, which does produce beautiful text, so the problem is not in the GLyphy code but in the way we use it. Include sources from GLyphy's "demo" directory (with only slight modifications to avoid unconditional debug output) and use that "demo" API from vcl. The changes to existing vcl code are all in one place, in the winlayout.cxx file. Change-Id: I69cce5d66db534c6f4c1ab85d520b6090baf8fe0
2015-11-19Link with GLyphy also for WindowsTor Lillqvist
(We don't actually use it yet for anything, though.) Change-Id: Id246a2a4853ba4d6dc09372b9cebcbb983363d36
2015-11-19link vcl against libglyphyMarkus Mohrhard
Change-Id: I5b206f5d857d28acda82ce8ac53f835142f46da2
2015-11-19vcl: move and split up "Image" related sources to "image" folderTomaž Vajngerl
This commit moves all sources related to Image class into its own "vcl/source/image" folder. Sources containing more classes were split up into its own source file. Change-Id: Ie6edcdb0a7caf936bccdc210c31f78bb15667945