diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-10-08 12:19:18 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-10-10 11:17:18 +0200 |
commit | ca5dbaa1b00c93461a8f0ebcf5dc420320e13ff9 (patch) | |
tree | 485685d012cab7e61742d3af32441f10a7c83657 /vcl/source | |
parent | db75c4e194cb97aa4e352fa38a45c012ce597e30 (diff) |
initial implementation of Skia drawing on screen in Windowsprivate/llunak/skia
Change-Id: I1562bd2cfd1862947042bef3343aefd851a65002
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/event.cxx | 7 | ||||
-rw-r--r-- | vcl/source/window/status.cxx | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index c8c6b730e1dd..f962b57c209f 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -22,6 +22,7 @@ #include <vcl/dockwin.hxx> #include <vcl/layout.hxx> #include <vcl/opengl/OpenGLWrapper.hxx> +#include <vcl/skia/SkiaHelper.hxx> #include <sal/log.hxx> #include <window.h> @@ -517,10 +518,12 @@ void Window::ImplCallResize() #if HAVE_FEATURE_OPENGL if( OpenGLWrapper::isVCLOpenGLEnabled() ) Invalidate(); - - // Normally we avoid blanking on re-size unless people might notice: else #endif + if( SkiaHelper::isVCLSkiaEnabled() ) // TODO + Invalidate(); + // Normally we avoid blanking on re-size unless people might notice: + else if( GetBackground().IsGradient() ) Invalidate(); diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 61c17df48dab..deb552f8d4a8 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -30,6 +30,7 @@ #if HAVE_FEATURE_OPENGL #include <vcl/opengl/OpenGLWrapper.hxx> #endif +#include <vcl/skia/SkiaHelper.hxx> #include <svdata.hxx> #include <window.h> @@ -723,6 +724,8 @@ void StatusBar::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle if( OpenGLWrapper::isVCLOpenGLEnabled() ) bOffscreen = false; #endif + if( SkiaHelper::isVCLSkiaEnabled() ) // TODO + bOffscreen = false; if (!bOffscreen) rRenderContext.Erase(rRect); |