diff options
author | Brian Osman <brianosman@google.com> | 2016-12-09 14:51:59 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-09 20:31:23 +0000 |
commit | 61624f0c716b576706659750d87b6956f4c15722 (patch) | |
tree | 00122b478cf21327b70364fefc5f3f9a6169377e /src/gpu/GrTextureProducer.h | |
parent | 073285c0595d46205d1482cc19af2d7d891bfeae (diff) |
Plumb dst color space in many places, rather than "mode"
This is less to type in most cases, and gives us more information
(for things like picture-backed images, where we need to know all
about the destination surface).
Additionally, strip out the plumbing entirely for bitmap sources,
where we don't need to know anything.
BUG=skia:
Change-Id: I4deff6c7c345fcf62eb08b2aff0560adae4313da
Reviewed-on: https://skia-review.googlesource.com/5748
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrTextureProducer.h')
-rw-r--r-- | src/gpu/GrTextureProducer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrTextureProducer.h b/src/gpu/GrTextureProducer.h index 4cae933168..2284cb4c05 100644 --- a/src/gpu/GrTextureProducer.h +++ b/src/gpu/GrTextureProducer.h @@ -61,8 +61,7 @@ public: FilterConstraint filterConstraint, bool coordsLimitedToConstraintRect, const GrSamplerParams::FilterMode* filterOrNullForBicubic, - SkColorSpace* dstColorSpace, - SkDestinationSurfaceColorMode) = 0; + SkColorSpace* dstColorSpace) = 0; virtual ~GrTextureProducer() {} @@ -96,10 +95,11 @@ protected: * return a key that identifies its original content + the CopyParms parameter. If the producer * does not want to cache the stretched version (e.g. the producer is volatile), this should * simply return without initializing the copyKey. If the texture generated by this producer - * depends on colorMode, then that information should also be incorporated in the key. + * depends on the destination color space, then that information should also be incorporated + * in the key. */ virtual void makeCopyKey(const CopyParams&, GrUniqueKey* copyKey, - SkDestinationSurfaceColorMode colorMode) = 0; + SkColorSpace* dstColorSpace) = 0; /** * If a stretched version of the texture is generated, it may be cached (assuming that |