Index: src/effects/SkColorCubeFilter.cpp |
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp |
index 3abda5fe48b49527a3d8312350c745b25e127b14..b39f9b3463efbd9b207b1df7be32c712542bfc83 100644 |
--- a/src/effects/SkColorCubeFilter.cpp |
+++ b/src/effects/SkColorCubeFilter.cpp |
@@ -162,8 +162,8 @@ void SkColorCubeFilter::toString(SkString* str) const { |
class GrColorCubeEffect : public GrFragmentProcessor { |
public: |
- static const GrFragmentProcessor* Create(GrTexture* colorCube) { |
- return (nullptr != colorCube) ? new GrColorCubeEffect(colorCube) : nullptr; |
+ static const GrFragmentProcessor* Create(GrTexture* colorCube, GrRenderTarget* dst) { |
+ return (nullptr != colorCube) ? new GrColorCubeEffect(colorCube, dst) : nullptr; |
} |
virtual ~GrColorCubeEffect(); |
@@ -202,7 +202,7 @@ private: |
bool onIsEqual(const GrFragmentProcessor&) const override { return true; } |
- GrColorCubeEffect(GrTexture* colorCube); |
+ GrColorCubeEffect(GrTexture* colorCube, GrRenderTarget* dst); |
GrTextureAccess fColorCubeAccess; |
@@ -211,8 +211,8 @@ private: |
/////////////////////////////////////////////////////////////////////////////// |
-GrColorCubeEffect::GrColorCubeEffect(GrTexture* colorCube) |
- : fColorCubeAccess(colorCube, "bgra", GrTextureParams::kBilerp_FilterMode) { |
+GrColorCubeEffect::GrColorCubeEffect(GrTexture* colorCube, GrRenderTarget* dst) |
+ : fColorCubeAccess(colorCube, "bgra", GrTextureParams::kBilerp_FilterMode, SkShader::kClamp_TileMode, dst) { |
this->initClassID<GrColorCubeEffect>(); |
this->addTextureAccess(&fColorCubeAccess); |
} |
@@ -305,7 +305,8 @@ void GrColorCubeEffect::GLProcessor::GenKey(const GrProcessor& proc, |
const GrGLSLCaps&, GrProcessorKeyBuilder* b) { |
} |
-const GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* context) const { |
+const GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* context, |
+ GrRenderTarget* dst) const { |
static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); |
GrUniqueKey key; |
GrUniqueKey::Builder builder(&key, kDomain, 2); |
@@ -330,6 +331,6 @@ const GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* con |
} |
} |
- return GrColorCubeEffect::Create(textureCube); |
+ return GrColorCubeEffect::Create(textureCube, dst); |
} |
#endif |