summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
diff options
context:
space:
mode:
authorBo Liu <boliu@google.com>2019-01-23 20:59:00 -0800
committerBo Liu <boliu@google.com>2019-01-24 14:04:58 -0800
commitb6da7f634f12972dac01a2ebeee2545b4c01dadd (patch)
tree8ea6ea3b73f5a90112e2552ac843fb206f7a400f /libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
parent07182c8622947e0407c6cd72fea4f6ab629f4b55 (diff)
Add color space params to webview gl functor
Bug: 111436479 Test: Compiles Change-Id: I6713afbb871a5c7027bac1e0f52ce2a841f38e25
Diffstat (limited to 'libs/hwui/pipeline/skia/GLFunctorDrawable.cpp')
-rw-r--r--libs/hwui/pipeline/skia/GLFunctorDrawable.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
index 60c805741058..a1b2b18195bc 100644
--- a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
+++ b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp
@@ -138,6 +138,7 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) {
info.width = fboSize.width();
info.height = fboSize.height();
mat4.asColMajorf(&info.transform[0]);
+ info.color_space_ptr = canvas->imageInfo().colorSpace();
// ensure that the framebuffer that the webview will render into is bound before we clear
// the stencil and/or draw the functor.