aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-07-11 09:08:46 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-11 14:07:08 +0000
commitc87cfb674bcaf27062dd11f88f1337af70173a11 (patch)
treeba2d1a2e7338aaf96bcddbdcb2dd9f7b746dfa23 /include/core
parentf730c1820fbab8c29b51738f8dd19cb88c7d5136 (diff)
Remove old lazy image decoding heuristic logic
This led to removing a lot of transfer function behavior code. There is more that could be done, and we need to add in decoding to dst color space, but this CL is almost entirely mechanical. Change-Id: I91b2169f95aadcfaacdd2b9821bb1a01ce53f9a6 Reviewed-on: https://skia-review.googlesource.com/140349 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkImageGenerator.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
index d4a79a2e23..172c0e7d00 100644
--- a/include/core/SkImageGenerator.h
+++ b/include/core/SkImageGenerator.h
@@ -82,13 +82,7 @@ public:
*
* @return true on success.
*/
- struct Options {
- Options()
- : fBehavior(SkTransferFunctionBehavior::kIgnore)
- {}
-
- SkTransferFunctionBehavior fBehavior;
- };
+ struct Options {};
bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options* options);
/**
@@ -148,7 +142,6 @@ public:
*/
sk_sp<GrTextureProxy> generateTexture(GrContext*, const SkImageInfo& info,
const SkIPoint& origin,
- SkTransferFunctionBehavior behavior,
bool willNeedMipMaps);
#endif
@@ -189,7 +182,6 @@ protected:
virtual TexGenType onCanGenerateTexture() const { return TexGenType::kNone; }
virtual sk_sp<GrTextureProxy> onGenerateTexture(GrContext*, const SkImageInfo&, const SkIPoint&,
- SkTransferFunctionBehavior,
bool willNeedMipMaps); // returns nullptr
#endif