summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/skia/gdiimpl.cxx22
1 files changed, 1 insertions, 21 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index f3122dc208e5..b2d19755d38c 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -361,29 +361,9 @@ void SkiaSalGraphicsImpl::createOffscreenSurface()
// HACK: See isOffscreen().
int width = std::max(1, GetWidth());
int height = std::max(1, GetHeight());
- switch (renderMethodToUse())
- {
- case RenderVulkan:
- {
- if (getSharedGrDirectContext())
- {
- mSurface = createSkSurface(width, height);
- if (mSurface)
- {
- mIsGPU = mSurface->getCanvas()->recordingContext() != nullptr;
- return;
- }
- }
- break;
- }
- default:
- break;
- }
- // Create raster surface as a fallback.
mSurface = createSkSurface(width, height);
assert(mSurface);
- assert(!mSurface->getCanvas()->recordingContext()); // is not GPU-backed
- mIsGPU = false;
+ mIsGPU = mSurface->getCanvas()->recordingContext() != nullptr;
}
void SkiaSalGraphicsImpl::destroySurface()