Index: src/gpu/GrPipeline.cpp |
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp |
index 8c40438a2722effe1ede3bc95e4afcfa582d0558..c3b8e77c1aa5317ca7337b0d047535ab5510044a 100644 |
--- a/src/gpu/GrPipeline.cpp |
+++ b/src/gpu/GrPipeline.cpp |
@@ -153,6 +153,11 @@ void GrPipeline::adjustProgramFromOptimizations(const GrPipelineBuilder& pipelin |
//////////////////////////////////////////////////////////////////////////////// |
bool GrPipeline::isEqual(const GrPipeline& that) const { |
+ // If we point to the same pipeline, then we are necessarily equal |
+ if (this == &that) { |
+ return true; |
+ } |
+ |
if (this->getRenderTarget() != that.getRenderTarget() || |
this->fFragmentStages.count() != that.fFragmentStages.count() || |
this->fNumColorStages != that.fNumColorStages || |