diff options
Diffstat (limited to 'src/gpu/ops/GrDiscardOp.h')
-rw-r--r-- | src/gpu/ops/GrDiscardOp.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gpu/ops/GrDiscardOp.h b/src/gpu/ops/GrDiscardOp.h index e7225af0d2..6923be2a49 100644 --- a/src/gpu/ops/GrDiscardOp.h +++ b/src/gpu/ops/GrDiscardOp.h @@ -20,11 +20,6 @@ public: const char* name() const override { return "Discard"; } - // TODO: this needs to be updated to return GrSurfaceProxy::UniqueID - GrGpuResource::UniqueID renderTargetUniqueID() const override { - return fRenderTarget.get()->uniqueID(); - } - SkString dumpInfo() const override { SkString string; string.printf("RT: %d", fRenderTarget.get()->uniqueID().asUInt()); @@ -39,7 +34,7 @@ private: } bool onCombineIfPossible(GrOp* that, const GrCaps& caps) override { - return this->renderTargetUniqueID() == that->renderTargetUniqueID(); + return fRenderTarget.get() == that->cast<GrDiscardOp>()->fRenderTarget.get(); } void onPrepare(GrOpFlushState*) override {} |