diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-02-15 13:14:32 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-04-03 11:57:08 +0200 |
commit | 86ea64f216819696cd86d1926aff0a138ace2baf (patch) | |
tree | db513803abc9dc255d27c0f08cba6d6d0c9ef1d9 /vcl/inc/salinst.hxx | |
parent | 994b41a6c69d20637dcb95894c385f5c0102d600 (diff) |
Support for native 32bit Bitmap in VCL and SVP (cairo) backend
This adds basic support for 32bit bitmaps for the SVP backend. For
other backends the support is disabled for now as we need to add it for
each backend separately and enable support.
When this patch is applied it is possible to a Bitmap with bit count
32, but currently no input filter uses this with the exception of the
new PngImageReader(libpng based), which is used only for the icons.
For a general support more things need to be implemented and tested:
- conversion back and fourth between 32-bit and 24-bit + 8bit alpha (or
other supported pairs)
- 'raw' export of the bitmap needs to be handeled properly (like in
SVM import/export) so it creates the correct image.
- input filters need to be checked and converted if this is necessary
- look for possible bugs when drawing transparent bitmaps
- check of UNO API
Change-Id: I7a7be0e6134dfdd9a7aeaef897131bb6e710ae7e
Reviewed-on: https://gerrit.libreoffice.org/69289
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc/salinst.hxx')
-rw-r--r-- | vcl/inc/salinst.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx index e35cd78df4fb..4acb0315de4c 100644 --- a/vcl/inc/salinst.hxx +++ b/vcl/inc/salinst.hxx @@ -28,6 +28,8 @@ #include <osl/thread.hxx> #include <vcl/vclenum.hxx> +#include "backend/BackendCapabilities.hxx" + #include "displayconnectiondispatch.hxx" #include <com/sun/star/uno/XComponentContext.hpp> @@ -134,6 +136,11 @@ public: virtual SalSystem* CreateSalSystem() = 0; // SalBitmap virtual std::shared_ptr<SalBitmap> CreateSalBitmap() = 0; + // BackendCapabilities + virtual std::shared_ptr<vcl::BackendCapabilities> GetBackendCapabilities() + { + return std::make_shared<vcl::BackendCapabilities>(); + } // YieldMutex comphelper::SolarMutex* GetYieldMutex(); |