summaryrefslogtreecommitdiff
path: root/vcl/opengl/scale.cxx
AgeCommit message (Collapse)Author
2015-09-16opengl: this doesn't really do anything as data is null anywayTomaž Vajngerl
Change-Id: Iacd75beecc14023173a9aa52a30298bbfe787d61
2015-08-28Add missing helpful GL trace messages outside of the impl. itself.Michael Meeks
Change-Id: I5b71e3c9edc3e1e89e52c2e17b5fe0a025ac66ea
2015-08-21tdf#93547 - Disable OpenGL if we have a SEGV on windows in that code.Michael Meeks
Annotate when we are in an OpenGL rendering zone. Check for this in the VCL signal handler, and force OpenGL off here if exception occurred inside an OpenGL code-path. Change-Id: I85a4b3d4a374593dc55d01a39ec4c7c3c262c332 Reviewed-on: https://gerrit.libreoffice.org/17881 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-08-03opengl: when scaling, create a new texture with equal settingsTomaž Vajngerl
Change-Id: Id0258fe0db89aa06b91233ae2052f018d606cc74
2015-07-10vcl: move resample kernel classes out of bitmap.hxxMichael Stahl
Since commit f31e6debfa7e330f985a0846a6ca91130d3dab20 this drags in ridiculous amounts of boost headers, for probably negigible improvemnts of sin(x)/x for tiny x values. The compile time impact was not negligible, moving this nonsense to its own header removes 1.79 GB of preprocessor input from a full build. Change-Id: Ic41b2210eac8b130726610f2dbdbb449379225d1
2015-07-09opengl: use MVP matrix in vertex shaders, pixel offsetsTomaž Vajngerl
ChangChange all vertex shaders to accept model, view, projection matrix to calculate the vertex position. So now we don't need to convert the coordinates to OpenGL coordinate space [-1.0, 1.0] anymore. Additionally make it possible to offset vertex coordinates so we can apply 0.5 px offset (to hit the pixel center) at some operations. Change-Id: I8e0a61d5fd4ab6aaa1c0c94439061725918577a0
2015-06-21Fix typosAndrea Gelmini
Change-Id: I2297bf392a405f02be2450f4624f1c9fc0b512ce Reviewed-on: https://gerrit.libreoffice.org/16373 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-06convert BMP_SCALE constant to scoped enumNoel Grandin
Change-Id: Ibc9f88d2588c028cd71aa86c26d970a73025ef22
2015-04-01loplugin:staticfunctionNoel Grandin
Change-Id: I909cf7e77f9d7194575636248196fda311fffdb6
2015-01-27when drawing a transformed bitmap in opengl backend, scale it betterLuboš Luňák
The plain scaling is rather rough, and in fact drawing a scaled bitmap the normal way gives much better results (because OutputDevice pre-scales the bitmap before it's drawn). This one may be a bit slow perhaps, but hopefully nobody there's no code that'd extensively use bitmap drawing with custom transformations (wishful thinking). Change-Id: I83e05307adfaeac0ed0757f1a0b2603f64caf8f8
2015-01-19"area" scaling for opengl that has good results for downscalingLuboš Luňák
Change-Id: I0e4ad776cbf31f9a130aedf0f9741927560b5ac1
2015-01-12opengl scaling can also handle the generic aliasesLuboš Luňák
Was missing from 82bc764bc9, without this opengl scaling wasn't used for these. Change-Id: If853435b12383e799afe2f057c43263b2d2297fa
2014-12-15do not hardcode what specific "generic" bitmap scaling operations useLuboš Luňák
I.e. make it possible for the opengl backend to decide to use a different scaling algorithm. Change-Id: I36e76de071797129c7636b3048c93bc6e5d93aca
2014-12-11vcl: Reset data buffer after resizing bitmap on GPULouis-Francis Ratté-Boulianne
Change-Id: I516cdbc466f3d6427e36fea8c5cdbe718ce7d0ea
2014-12-02vcl: Only load OpenGL shaders once for each contextLouis-Francis Ratté-Boulianne
Change-Id: Idbf9026c5e64ef41d4c913153dfddf36923ff7de
2014-12-02vcl: Use the current OpenGL context for VirtualDevice and Bitmap if possibleLouis-Francis Ratté-Boulianne
Conflicts: include/vcl/opengl/OpenGLContext.hxx vcl/inc/openglgdiimpl.hxx vcl/opengl/gdiimpl.cxx vcl/opengl/x11/gdiimpl.cxx vcl/source/opengl/OpenGLContext.cxx Change-Id: I17f6ce66fb8b5bc027d35b4016ae56c24ee0a738
2014-11-22vcl: Update current context before executing scale operationLouis-Francis Ratté-Boulianne
Change-Id: I332c954259bdc7e34718449023f5aa82323987cc
2014-11-18vcl: since we share Bitmaps across all GLContexts simplify lifecycle.Michael Meeks
~X11SalVirtualDevice() was destroying X resources referred to by OpenGLSalBitmap's mpContext, which were subsequently accessed by Bitmap::AcquireReadAccess on the floating Bitmap. Better to use the default window's GLContext for all bitmap operations. Change-Id: I9009980e791cff1a1f36d626592d72c7a32efd39
2014-11-18vcl: Execute pending operations on source when copying bitmapLouis-Francis Ratté-Boulianne
Change-Id: I8a6a5ffe71c9e5f16533fd1f0944d4fd2a051c73
2014-11-15vcl: Improve OpenGLTexture implementation by allowing implicit sharingLouis-Francis Ratté-Boulianne
Conflicts: vcl/opengl/gdiimpl.cxx Change-Id: I6421265325e72023d1affe671d75488185772786
2014-11-13vcl: Use new size when scaling with filter in OpenGL backendLouis-Francis Ratté-Boulianne
Change-Id: Ib5d12b0e57b537bbd1798121e80cd517d9c8f751
2014-11-12opengl: Check for error at the end of every method that deals with OpenGL.Jan Holesovsky
Otherwise we will get the report of an error much much later, most probably in a totally unrelated part. Change-Id: I33d3c6d01126f5766beb179eeaeb3276a9078226
2014-11-11vcl: avoid opengl kernel creation writing over its buffers.Michael Meeks
Change-Id: I90486137323afc03a23afa6c18c27840fe8456e1
2014-11-10vcl: Add a way to resize an image using the GPULouis-Francis Ratté-Boulianne
Change-Id: I949e13277fa176d64d7fba9a57e3ca6f3f0dd732