aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrProcessor.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-19 12:02:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-19 16:40:43 +0000
commit159e3c6c925d55b397c8c75273c773e18946b493 (patch)
tree2ebf37928211285223247bd2f3773ab7969cf57c /src/gpu/GrProcessor.h
parentc352f3b89a28fd06bf9b124bfc960d9581949716 (diff)
Fix MDB regression
This CL: https://skia-review.googlesource.com/c/10484/ (Omnibus: Push instantiation of GrTextures later (post TextureSampler)) introduced a perf regression. Cached textures can appear in different GrSurfaceProxies but have the same underlying GrTexture. Bug: 729233 Change-Id: Ifd7a9260a8a4535e8440c0d837bfdc445a921aa4 Reviewed-on: https://skia-review.googlesource.com/20223 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrProcessor.h')
-rw-r--r--src/gpu/GrProcessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrProcessor.h b/src/gpu/GrProcessor.h
index b7abf2fbe2..771b276570 100644
--- a/src/gpu/GrProcessor.h
+++ b/src/gpu/GrProcessor.h
@@ -232,7 +232,7 @@ public:
GrShaderFlags visibility = kFragment_GrShaderFlag);
bool operator==(const TextureSampler& that) const {
- return this->proxy() == that.proxy() &&
+ return this->proxy()->underlyingUniqueID() == that.proxy()->underlyingUniqueID() &&
fParams == that.fParams &&
fVisibility == that.fVisibility;
}