diff options
author | Derek Sollenberger <djsollen@google.com> | 2018-10-19 15:55:33 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2018-11-07 20:56:28 +0000 |
commit | d01b5916d8b512ee4df8d749022c10419b58b4b2 (patch) | |
tree | 734292de80f5033a1cc32cede1d916d5806b8482 /libs/hwui/Readback.h | |
parent | fe878c454ad92f98db770eb51a55ac14ca7fcd08 (diff) |
Set the color space to sRGB on the Surface and remove colorFilter.
Also for a canvas wrapping a bitmap the colorspace of the bitmap
will be used to correctly blend content.
Test: CtsUiRenderingTestCases
Bug: 111436479
Change-Id: I63ad7a30605a7f725cc0ef4716d42ea978fb03e3
Diffstat (limited to 'libs/hwui/Readback.h')
-rw-r--r-- | libs/hwui/Readback.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Readback.h b/libs/hwui/Readback.h index d9e10cedc0e8..e86a8136cfa3 100644 --- a/libs/hwui/Readback.h +++ b/libs/hwui/Readback.h @@ -54,8 +54,8 @@ public: CopyResult copyLayerInto(DeferredLayerUpdater* layer, SkBitmap* bitmap); private: - CopyResult copyImageInto(const sk_sp<SkImage>& image, sk_sp<SkColorFilter>& colorSpaceFilter, - Matrix4& texTransform, const Rect& srcRect, SkBitmap* bitmap); + CopyResult copyImageInto(const sk_sp<SkImage>& image, Matrix4& texTransform, + const Rect& srcRect, SkBitmap* bitmap); bool copyLayerInto(Layer* layer, const SkRect* srcRect, const SkRect* dstRect, SkBitmap* bitmap); |