From 54be644c092eebb8be57a251556fe3f0e5f99e57 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 6 Nov 2019 16:14:50 +0100 Subject: make SkiaSalGraphicsImpl use GPU-backed SkSurface also for offscreen Skia's sk_app::WindowContext can create GPU-backed SkSurface only for windows, but we also use virtual devices that are not windows. Fortunately, SkSurface can be created GPU-backed from GrContext* and sk_gpu_test::GrContextFactory seems to provide it easily. It is not completely clear to me what the rules are on mixing SkSurface's with different GrContext* (see the comment in SkiaSalGraphicsImpl::copyBits()), but it seems to work fine. Change-Id: I8110b67c41ab092e0c4b6a0973d6bed8a408c4c1 --- vcl/Library_vcl.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vcl/Library_vcl.mk') diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk index c054a2767a3c..1f05f7aa9dd2 100644 --- a/vcl/Library_vcl.mk +++ b/vcl/Library_vcl.mk @@ -586,7 +586,8 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ vcl/skia/SkiaHelper \ $(if $(filter SKIA,$(BUILD_TYPE)), \ vcl/skia/salbmp \ - vcl/skia/gdiimpl) \ + vcl/skia/gdiimpl \ + vcl/skia/vulkan) \ )) # runtime dependency -- cgit