aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrPaint.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrPaint.h')
-rw-r--r--include/gpu/GrPaint.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/gpu/GrPaint.h b/include/gpu/GrPaint.h
index 3b136ac82e..2649b9e18b 100644
--- a/include/gpu/GrPaint.h
+++ b/include/gpu/GrPaint.h
@@ -20,6 +20,8 @@
#include "SkTLazy.h"
#include "effects/GrPorterDuffXferProcessor.h"
+class GrTextureProxy;
+
/**
* The paint describes how color and coverage are computed at each pixel by GrContext draw
* functions and the how color is blended with the destination pixel.
@@ -116,6 +118,16 @@ public:
const GrSamplerParams&);
void addCoverageTextureProcessor(GrTexture*, const SkMatrix&, const GrSamplerParams&);
+
+ void addColorTextureProcessor(GrContext*, sk_sp<GrTextureProxy>, sk_sp<GrColorSpaceXform>,
+ const SkMatrix&);
+ void addColorTextureProcessor(GrContext*, sk_sp<GrTextureProxy>, sk_sp<GrColorSpaceXform>,
+ const SkMatrix&, const GrSamplerParams&);
+
+ void addCoverageTextureProcessor(GrContext*, sk_sp<GrTextureProxy>, const SkMatrix&);
+ void addCoverageTextureProcessor(GrContext*, sk_sp<GrTextureProxy>,
+ const SkMatrix&, const GrSamplerParams&);
+
int numColorFragmentProcessors() const { return fColorFragmentProcessors.count(); }
int numCoverageFragmentProcessors() const { return fCoverageFragmentProcessors.count(); }
int numTotalFragmentProcessors() const { return this->numColorFragmentProcessors() +