Support decal mode in GrTextureProducer
Bug: skia:
Change-Id: I9dab07c527f20d58896b17d6c3ea4e632835db3b
Reviewed-on: https://skia-review.googlesource.com/c/193366
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrImageTextureMaker.h b/src/gpu/GrImageTextureMaker.h
index 76f539d..ba7772b 100644
--- a/src/gpu/GrImageTextureMaker.h
+++ b/src/gpu/GrImageTextureMaker.h
@@ -19,7 +19,7 @@
class GrImageTextureMaker : public GrTextureMaker {
public:
GrImageTextureMaker(GrRecordingContext* context, const SkImage* client,
- SkImage::CachingHint chint);
+ SkImage::CachingHint chint, bool useDecal = false);
protected:
// TODO: consider overriding this, for the case where the underlying generator might be
@@ -45,7 +45,7 @@
/** This class manages the conversion of generator-backed YUVA images to GrTextures. */
class GrYUVAImageTextureMaker : public GrTextureMaker {
public:
- GrYUVAImageTextureMaker(GrContext* context, const SkImage* client);
+ GrYUVAImageTextureMaker(GrContext* context, const SkImage* client, bool useDecal = false);
protected:
// TODO: consider overriding this, for the case where the underlying generator might be