summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
diff options
context:
space:
mode:
authorGreg Daniel <egdaniel@google.com>2017-01-04 14:27:00 -0500
committerGreg Daniel <egdaniel@google.com>2017-01-10 15:54:14 -0500
commit45ec62ba72c5017fae7d8baab20bfb0d4c99c627 (patch)
treead2314dad22323b16837f7ec219e1bdef3e2290c /libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
parent8cd3edfa15cc9cdbffa935d19ab894426b08d174 (diff)
Add support for dummy draws for Vulkan webview and texture views.
Test: manual testing Change-Id: Iaec8c3a34367673c281665ff6c6e97d1ce532265
Diffstat (limited to 'libs/hwui/pipeline/skia/GLFunctorDrawable.cpp')
-rw-r--r--libs/hwui/pipeline/skia/GLFunctorDrawable.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
index fb2134c51e22..419c8a99fe74 100644
--- a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
+++ b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
@@ -52,6 +52,11 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) {
canvas->flush();
+ if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaVulkan) {
+ canvas->clear(SK_ColorRED);
+ return;
+ }
+
SkImageInfo canvasInfo = canvas->imageInfo();
SkMatrix44 mat4(canvas->getTotalMatrix());