summaryrefslogtreecommitdiff
path: root/vcl/skia/gdiimpl.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-07 12:40:02 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-10-10 11:14:08 +0200
commit3d1b9405ad3507d788f7321d3aaddf40febf35d8 (patch)
tree185a38c4fa41827f58a01b0127402c68280785f3 /vcl/skia/gdiimpl.cxx
parentf15162033e8716d469052d0e1ebcde395baf30c0 (diff)
make X11/Skia render to screen using Skia code
Change-Id: I3056afe2ba0a15e0798d209ab9bd833c773948be
Diffstat (limited to 'vcl/skia/gdiimpl.cxx')
-rw-r--r--vcl/skia/gdiimpl.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index 07937c6b9cb0..c9936d675d66 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -67,8 +67,7 @@ SkiaSalGraphicsImpl::~SkiaSalGraphicsImpl() {}
void SkiaSalGraphicsImpl::Init()
{
- // TODO
- mSurface = SkSurface::MakeRasterN32Premul(GetWidth(), GetHeight());
+ createSurface();
mSurface->getCanvas()->save(); // see SetClipRegion()
mClipRegion = vcl::Region(tools::Rectangle(0, 0, GetWidth(), GetHeight()));
@@ -76,6 +75,12 @@ void SkiaSalGraphicsImpl::Init()
mFlush->SetPriority(TaskPriority::POST_PAINT);
}
+void SkiaSalGraphicsImpl::createSurface()
+{
+ // TODO
+ mSurface = SkSurface::MakeRasterN32Premul(GetWidth(), GetHeight());
+}
+
void SkiaSalGraphicsImpl::DeInit() { mSurface.reset(); }
static SkIRect toSkIRect(const tools::Rectangle& rectangle)