summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
AgeCommit message (Collapse)AuthorFilesLines
2015-08-11loplugin: defaultparamsNoel Grandin1-1/+1
Change-Id: I79a889c68e91712d2abdacc559c78813f730e623
2015-07-08loplugin:unusedmethods vclNoel Grandin1-98/+3
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
2015-07-06Fix Funky Capitalisation Of CommentsTor Lillqvist1-25/+25
Change-Id: I2846824d402d029cde8d214f8112047243c79c54
2015-07-04Fix typosAndrea Gelmini1-1/+1
Change-Id: Id9296115f30858e7fd470a199e59343a96d7deec Reviewed-on: https://gerrit.libreoffice.org/16712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-03tdf#88831 fix inverted textures when OpenGL is enabledTomaž Vajngerl1-1/+5
GLX returns a wrong value if the y coords are inverted. Most other programs don't even ask for this (gnome-shell for example) and just assumes "true" (and this works because most relevant X servers work like this). We make this more robust and assume true only if the returned value is GLX_DONT_CARE (-1). Change-Id: I4800b3364fd00f5f4a8f5a459472bfa8d97827ba
2015-06-18loplugin:checkconfigmacrosStephan Bergmann1-1/+1
Change-Id: Ia94c53457e328db9bdd8dd22d7a39e49c358301c
2015-06-18continue to support glew 1.10David Tardon1-1/+9
Change-Id: I951c04e7d0039f1e38e3bcb2ea7e0f7c33293b9b
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe2-4/+3
This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-06-17Const correctnessTor Lillqvist1-1/+1
Change-Id: I786b9590f8179a1f6c6593b7ff1dec286adda192
2015-06-12get rid of a few thousand unnecessary OpenGL callsMarkus Mohrhard1-2/+5
For each iteration of the (gtk) main loop we are dropping the yield mutext which results in calling OpenGLContext::clearCurrent. That method calls OpenGLContext::ReleaseFramebuffers which would call in the end glBindFramebuffer for each framebuffer related to that context. This would easily grow into the thousand OpenGL calls without doing any work. Change-Id: I209cc534fe58a5e11ef7df7f850a787916b8bd43 Reviewed-on: https://gerrit.libreoffice.org/16241 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann1-1/+1
Change-Id: I07bf1403e6b992807541a499b786d47f835b2f81
2015-05-28new clang plugin: loopvartoosmallNoel Grandin1-2/+2
Idea from bubli - look for loops where the index variable is of such size that it cannot cover the range revealed by examining the length part of the condition. So far, I have only run the plugin up till the VCL module. Also the plugin deliberately excludes anything more complicated than a straightforward incrementing for loop. Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
2015-05-28convert PARENTCLIPMODE constants to scoped enumNoel Grandin1-3/+3
Change-Id: I36a53112e75fca9208b2f91e224a7c671695509b
2015-05-08False loplugin:staticmethodsStephan Bergmann1-0/+3
Change-Id: Icc026ebb422c299caca6c24d6a56416076589fc8
2015-04-28Merge remote-tracking branch 'origin/feature/vclptr'Michael Meeks1-7/+6
Resolve several thousand lines of conflicts. Conflicts: accessibility/source/extended/accessiblelistbox.cxx accessibility/source/standard/vclxaccessiblecombobox.cxx accessibility/source/standard/vclxaccessibledropdowncombobox.cxx accessibility/source/standard/vclxaccessibledropdownlistbox.cxx accessibility/source/standard/vclxaccessiblelistbox.cxx accessibility/source/standard/vclxaccessibletextfield.cxx basctl/source/basicide/basidesh.cxx cui/source/inc/chardlg.hxx cui/source/tabpages/tpbitmap.cxx dbaccess/source/ui/dlg/UserAdmin.cxx dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx extensions/source/propctrlr/propertyeditor.hxx extensions/source/scanner/sanedlg.cxx filter/source/pdf/impdialog.cxx include/sfx2/mgetempl.hxx include/sfx2/sidebar/SidebarToolBox.hxx include/sfx2/viewsh.hxx include/svtools/brwbox.hxx include/svtools/filectrl.hxx include/svtools/scrwin.hxx include/svx/dlgctrl.hxx include/svx/sidebar/Popup.hxx include/svx/sidebar/PopupContainer.hxx include/svx/sidebar/PopupControl.hxx include/svx/sidebar/SidebarDialControl.hxx include/svx/sidebar/ValueSetWithTextControl.hxx sc/source/ui/condformat/condformatdlgentry.cxx sc/source/ui/navipi/navipi.cxx sc/source/ui/sidebar/CellBorderStyleControl.hxx sd/source/ui/animations/CustomAnimationDialog.cxx sd/source/ui/inc/DrawViewShell.hxx sd/source/ui/inc/Ruler.hxx sd/source/ui/inc/SlideSorter.hxx sd/source/ui/inc/ViewTabBar.hxx sd/source/ui/inc/Window.hxx sd/source/ui/inc/morphdlg.hxx sd/source/ui/inc/sdpreslt.hxx sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx sd/source/ui/sidebar/LayoutMenu.hxx sd/source/ui/sidebar/MasterPagesSelector.hxx sd/source/ui/sidebar/NavigatorWrapper.hxx sd/source/ui/sidebar/PanelBase.hxx sd/source/ui/sidebar/RecentMasterPagesSelector.cxx sd/source/ui/sidebar/RecentMasterPagesSelector.hxx sd/source/ui/slideshow/showwindow.hxx sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx sd/source/ui/view/ViewShellBase.cxx sd/source/ui/view/drviewsa.cxx sfx2/source/appl/fileobj.hxx sfx2/source/appl/opengrf.cxx sfx2/source/control/thumbnailviewacc.hxx sfx2/source/dialog/securitypage.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/doc/docinsert.cxx sfx2/source/doc/guisaveas.cxx sfx2/source/inc/alienwarn.hxx sfx2/source/sidebar/Deck.cxx sfx2/source/sidebar/Deck.hxx sfx2/source/sidebar/DeckTitleBar.cxx sfx2/source/sidebar/DeckTitleBar.hxx sfx2/source/sidebar/MenuButton.cxx sfx2/source/sidebar/MenuButton.hxx sfx2/source/sidebar/Panel.cxx sfx2/source/sidebar/Panel.hxx sfx2/source/sidebar/PanelTitleBar.hxx sfx2/source/sidebar/SidebarDockingWindow.hxx sfx2/source/sidebar/SidebarToolBox.cxx sfx2/source/sidebar/TabBar.hxx sfx2/source/sidebar/TabItem.cxx sfx2/source/sidebar/TabItem.hxx sfx2/source/sidebar/TitleBar.hxx sfx2/source/toolbox/imgmgr.cxx starmath/inc/edit.hxx starmath/inc/smmod.hxx starmath/qa/cppunit/test_starmath.cxx starmath/source/edit.cxx starmath/source/smmod.cxx svtools/source/brwbox/brwbox1.cxx svtools/source/brwbox/datwin.hxx svtools/source/contnr/fileview.cxx svtools/source/contnr/simptabl.cxx svtools/source/control/filectrl.cxx svtools/source/control/valueimp.hxx svx/inc/GalleryControl.hxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/swframeexample.cxx svx/source/fmcomp/fmgridif.cxx svx/source/gallery2/GalleryControl.cxx svx/source/sidebar/EmptyPanel.hxx svx/source/sidebar/area/AreaPropertyPanel.hxx svx/source/sidebar/area/AreaTransparencyGradientControl.hxx svx/source/sidebar/graphic/GraphicPropertyPanel.hxx svx/source/sidebar/insert/InsertPropertyPanel.cxx svx/source/sidebar/insert/InsertPropertyPanel.hxx svx/source/sidebar/line/LinePropertyPanel.hxx svx/source/sidebar/line/LineWidthControl.cxx svx/source/sidebar/line/LineWidthControl.hxx svx/source/sidebar/line/LineWidthValueSet.hxx svx/source/sidebar/paragraph/ParaPropertyPanel.hxx svx/source/sidebar/possize/SidebarDialControl.cxx svx/source/sidebar/text/TextCharacterSpacingPopup.hxx svx/source/sidebar/text/TextPropertyPanel.hxx svx/source/sidebar/tools/PopupContainer.cxx svx/source/sidebar/tools/PopupControl.cxx svx/source/sidebar/tools/ValueSetWithTextControl.cxx svx/source/svdraw/svdfmtf.hxx svx/source/svdraw/svdibrow.cxx svx/source/tbxctrls/colrctrl.cxx svx/source/tbxctrls/tbcontrl.cxx sw/source/ui/dbui/mmaddressblockpage.cxx sw/source/ui/dialog/uiregionsw.cxx sw/source/ui/index/cnttab.cxx sw/source/uibase/inc/drpcps.hxx sw/source/uibase/sidebar/PageColumnControl.hxx sw/source/uibase/sidebar/PageMarginControl.hxx sw/source/uibase/sidebar/PageOrientationControl.hxx sw/source/uibase/sidebar/PagePropertyPanel.hxx sw/source/uibase/sidebar/PageSizeControl.hxx sw/source/uibase/uiview/view2.cxx sw/source/uibase/utlui/navipi.cxx vcl/inc/svdata.hxx vcl/source/control/combobox.cxx vcl/source/control/lstbox.cxx vcl/source/window/dockwin.cxx vcl/source/window/winproc.cxx Change-Id: I056cf3026ff17d65cca0b6e6588bda4a88fa8d95
2015-04-24loplugin:simplifyboolStephan Bergmann1-1/+1
Change-Id: I8276e8b356ff26241613de64bcd90b5dbcd92f29
2015-04-23Use shared_ptr for OpenGLPrograms, and hide its copy constructor.Michael Meeks1-8/+6
Change-Id: Ia1352105acef1ededaf876a224ebc277121d6942
2015-04-23Use shared_ptr for OpenGLPrograms, and hide its copy constructor.Michael Meeks1-8/+6
Change-Id: Ia1352105acef1ededaf876a224ebc277121d6942
2015-04-20vcl: convert new to ::CreateMichael Meeks1-3/+3
Change-Id: Ifd52953086ea923fa1770892d13f32c2263aec54
2015-04-13Use the new ::Create template method.Michael Meeks1-1/+1
Change-Id: I79e15b45769ced44b1679943972f7a71c7df8fca
2015-04-10Remove OpenGLContext GC window.Michael Meeks1-3/+2
Change-Id: I1468fc94aa0c709528a767b96bc26eefdb7ed08f
2015-04-10vclwidget: improve detection of vcl::Window fieldsNoel Grandin1-1/+1
that need to be wrapped in VclPtr, and convert several sites Change-Id: I1fb1ed164a99642a0c1ccbf433eb14df688fa476
2015-04-01loplugin:staticfunctionNoel Grandin1-1/+1
Change-Id: I909cf7e77f9d7194575636248196fda311fffdb6
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann1-2/+2
Change-Id: I65d76524847b57dcb17ee3f66e156ec1fd51b239
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann1-1/+1
Change-Id: Iad602cece6e328c7f5d5f36adb294c97b152ade3
2015-03-19opengl: We need to return the GLWindow.Jan Holesovsky1-1/+1
Fixes an unitialized read in wglDeleteContext, thanks Dr.Memory! Change-Id: I3706b18526c48277f9b4a6801c95c26a10a86965
2015-03-16missing space in log messageMarkus Mohrhard1-1/+1
Change-Id: I464dbf8cf9c65f2dd5e88236be8ddf4c0676bfdd
2015-03-09coverity#1268023 Logically dead codeCaolán McNamara1-2/+1
Change-Id: I8fcda18101071db7dddc304c29e4130b04a70f89
2015-03-04V813: Decreased performanceCaolán McNamara1-2/+2
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-02Remove references to unused GLUStephan Bergmann1-1/+1
(after removing the one remaining use of gluErrorString in a SAL_WARN call) Change-Id: Ib94e346d73e508e69c07deafdc690e3ae0e23d4e
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara1-13/+13
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-07Fixup --without-x buildRiccardo Magliocchetti2-13/+15
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>
2015-02-01help coverity out wrt coverity#1267682 String not null terminatedCaolán McNamara1-1/+1
Change-Id: Ib72c0daf8573314d601d7acea3a1fbb3183b4bb6
2015-01-30vcl: OpenGL code for adding preambles to glsl fragments now handles #versionChris Sherlock1-2/+31
If you include the #version directive then it must be on the first non-comment line in a glsl fragment. This is now handled. Change-Id: I7e938c27b24d20f25e656667a122d7a341f51611 Reviewed-on: https://gerrit.libreoffice.org/14246 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-01-27make it possible to easily have variants of glsl programsLuboš Luňák2-6/+26
Now it's possible to add a preamble to the compiled program, so there can be just one program with #ifdef's inside and the small variants can be selected using #define in the preamble instead of having several almost identical programs. Change-Id: I6c5112313b91b6269ebdecdfc896e0f96209ea2b
2015-01-25coverity#1266483 String not null terminatedCaolán McNamara1-4/+2
Change-Id: I4d22e5a621d36fa2e914891e82ce7e8e06f60b4c
2015-01-24vcl: OpenGLHelper::isVCLOpenGLEnabled() returns false when console onlyChris Sherlock1-0/+6
Change-Id: I7bcda46c73b958637073f8ec95d093385a81df3f
2015-01-23-Werror=unused-functionStephan Bergmann1-0/+2
Change-Id: Ib4c059876ac8b66ef75a6a00f3eb8ccbfc4d5eb7
2015-01-20bail out early if there is no DisplayMarkus Mohrhard1-2/+7
Change-Id: I1d724ae9346a4df7207e737cf98bf0cd7293bc2b
2015-01-20lets do that before we delete our objectMarkus Mohrhard1-3/+4
Change-Id: I8c7166ba66f74f5c548bb6fb30dfc3d28880e9a2
2015-01-20some debug code for finding leaked OpenGLContextsMarkus Mohrhard1-0/+21
Change-Id: I10e8c344ae6aa2e0a4ef562154f57e2070c70e2f
2015-01-20I was just missing the code for the ARB versionMarkus Mohrhard1-2/+0
Change-Id: Id1a7eef76967a9fdc5279d3c5e7694e6c6b2b907
2015-01-20only enable these error handlers in dbgutil buildsMarkus Mohrhard1-0/+4
They might become expensive with our repeated calls to makeCurrent Change-Id: I1d30460f2cad34c6ab676754682651422e545c90
2015-01-20fix the life cycle of my RAII objectMarkus Mohrhard1-6/+10
Change-Id: Ifcd4ab79192be965b57439062354e27af80136b3
2015-01-20Some more loplugin:cstylecast: vclStephan Bergmann1-7/+7
Change-Id: I74d35630b9fcdaa97af0b1f1e6d1e5c72488964d
2015-01-19use a special X error handler for more GLX callsMarkus Mohrhard1-14/+40
Change-Id: I8cafc7e106bbf9ddc790d72b9399efcf76df633e
2015-01-17no need to do that for all contextsMarkus Mohrhard1-16/+0
This fixes a crash as we would need to make each context current before calling ReleaseFramebuffers. However this is totally unnecessary as only the current context can have bound framebuffers. Change-Id: I8b1496bb890982742b3d2ebf60fdce47db642d70
2015-01-07fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin1-1/+1
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-06vcl: reset OpenGLContext(s) when yielding the last SolarMutex.Michael Meeks1-1/+20
This should make OpenGL thread-safe to allow multiple threads to render using VCL's OpenGL backend, and fix misc. associated driver horrors, will give some performance cost for tight Yield loops. Change-Id: Ib23702262fd9f0925a5ed8c642d0a26e92136b37
2015-01-05spelling: attachement -> attachmentNoel Grandin1-1/+1
Change-Id: I1bb1ad04adec864b594d96711f85b8fcdc1d1ef2