summaryrefslogtreecommitdiff
path: root/libs/hwui/SkiaCanvas.h
diff options
context:
space:
mode:
author Derek Sollenberger <djsollen@google.com> 2017-08-02 21:57:42 +0000
committer Derek Sollenberger <djsollen@google.com> 2017-08-02 21:57:42 +0000
commita7f6af2c51e70a3ff84bd3a8274f372bccfef8d0 (patch)
tree95c69bb058c277e4cc7d186db804e5e9e8672f73 /libs/hwui/SkiaCanvas.h
parentb851b197497783f894b72edcaed8f93d035ddea0 (diff)
Revert "Use colorFilters when rendering to an sRGB bitmap."
This reverts commit b851b197497783f894b72edcaed8f93d035ddea0. Change-Id: I5bb8fe9bf9f5d411674e289c467b3f569f7bb068
Diffstat (limited to 'libs/hwui/SkiaCanvas.h')
-rw-r--r--libs/hwui/SkiaCanvas.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/hwui/SkiaCanvas.h b/libs/hwui/SkiaCanvas.h
index 6a01f964873b..af2c23e4a2b7 100644
--- a/libs/hwui/SkiaCanvas.h
+++ b/libs/hwui/SkiaCanvas.h
@@ -37,8 +37,12 @@ public:
* @param canvas SkCanvas to handle calls made to this SkiaCanvas. Must
* not be NULL. This constructor does not take ownership, so the caller
* must guarantee that it remains valid while the SkiaCanvas is valid.
+ * @param xformToSRGB Indicates if bitmaps should be xformed to the sRGB
+ * color space before drawing. This makes sense for software rendering.
+ * For the picture case, it may make more sense to leave bitmaps as is,
+ * and handle the xform when replaying the picture.
*/
- explicit SkiaCanvas(SkCanvas* canvas);
+ explicit SkiaCanvas(SkCanvas* canvas, XformToSRGB xformToSRGB);
virtual ~SkiaCanvas();
@@ -178,9 +182,6 @@ private:
void drawPoints(const float* points, int count, const SkPaint& paint,
SkCanvas::PointMode mode);
- const SkPaint* addFilter(const SkPaint* origPaint, SkPaint* tmpPaint,
- sk_sp<SkColorFilter> colorSpaceFilter);
-
class Clip;
std::unique_ptr<SkCanvas> mCanvasWrapper; // might own a wrapper on the canvas