Index: src/gpu/GrFragmentProcessor.cpp |
diff --git a/src/gpu/GrFragmentProcessor.cpp b/src/gpu/GrFragmentProcessor.cpp |
index 46efd8069071fa93e968cbc51f5187e2c0a6e2df..9524c84df1e0d881b2f94524194385bfc5edc07d 100644 |
--- a/src/gpu/GrFragmentProcessor.cpp |
+++ b/src/gpu/GrFragmentProcessor.cpp |
@@ -27,7 +27,7 @@ GrFragmentProcessor::~GrFragmentProcessor() { |
bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that, |
bool ignoreCoordTransforms) const { |
if (this->classID() != that.classID() || |
- !this->hasSameTextureAccesses(that)) { |
+ !this->hasSameSamplers(that)) { |
return false; |
} |
if (ignoreCoordTransforms) { |
@@ -69,6 +69,15 @@ void GrFragmentProcessor::addTextureAccess(const GrTextureAccess* textureAccess) |
fNumTexturesExclChildren++; |
} |
+void GrFragmentProcessor::addBufferAccess(const GrBufferAccess* bufferAccess) { |
+ // Can't add buffer accesses after registering any children since their buffer accesses have |
+ // already been bubbled up into our fBufferAccesses array |
+ SkASSERT(fChildProcessors.empty()); |
+ |
+ INHERITED::addBufferAccess(bufferAccess); |
+ fNumBuffersExclChildren++; |
+} |
+ |
void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { |
// Can't add transforms after registering any children since their transforms have already been |
// bubbled up into our fCoordTransforms array |