aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkImageCacherator.h
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-03-24 16:31:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-03 18:32:42 +0000
commitd531ca038fac8acb3320a78c393c002ca59768fe (patch)
tree2d9891fae706bf8aa7972dda94b01cb6a56cf45c /src/core/SkImageCacherator.h
parent8576014d8a8b799b30dbee4b9d86571fc4781807 (diff)
Use SkTransferFunctionBehavior in SkImageGenerator
This fixes SkColorSpaceXformCanvas gms that expect non-linear premuls from the codec. BUG=skia: Change-Id: I5dc236d0cd760c23605a26e9c33ddb18955f9231 Reviewed-on: https://skia-review.googlesource.com/10164 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/core/SkImageCacherator.h')
-rw-r--r--src/core/SkImageCacherator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkImageCacherator.h b/src/core/SkImageCacherator.h
index e75aab7a93..233b7db13e 100644
--- a/src/core/SkImageCacherator.h
+++ b/src/core/SkImageCacherator.h
@@ -88,7 +88,7 @@ public:
bool lockAsBitmapOnlyIfAlreadyCached(SkBitmap*, CachedFormat);
// Call the underlying generator directly
bool directGeneratePixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB,
- int srcX, int srcY);
+ int srcX, int srcY, SkTransferFunctionBehavior behavior);
private:
// Ref-counted tuple(SkImageGenerator, SkMutex) which allows sharing of one generator