diff options
author | Robert Phillips <robertphillips@google.com> | 2017-05-17 09:36:38 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-17 14:19:40 +0000 |
commit | 318c419d3e373487a8bb28f56ea921ed850e61ac (patch) | |
tree | 5899f07429b2bbc12bd27a3ecff05292e52c3017 /include | |
parent | 292bf7a163729330ec6d337992ddd2403a0ed8a2 (diff) |
Remove RenderTarget pointer from GrRenderTargetOpList::RecordedOp
Change-Id: I08afe531cd9c65af4b3f6b6006bc3eaf7071cfec
Change-Id: I08afe531cd9c65af4b3f6b6006bc3eaf7071cfec
Reviewed-on: https://skia-review.googlesource.com/17117
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/private/GrAuditTrail.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/include/private/GrAuditTrail.h b/include/private/GrAuditTrail.h index 9fdae30f8f..05f6fc5aca 100644 --- a/include/private/GrAuditTrail.h +++ b/include/private/GrAuditTrail.h @@ -81,9 +81,7 @@ public: fCurrentStackTrace.push_back(SkString(framename)); } - void addOp(const GrOp*, - GrGpuResource::UniqueID resourceID, - GrRenderTargetProxy::UniqueID proxyID); + void addOp(const GrOp*, GrRenderTargetProxy::UniqueID proxyID); void opsCombined(const GrOp* consumer, const GrOp* consumed); @@ -106,21 +104,12 @@ public: // We could just return our internal bookkeeping struct if copying the data out becomes // a performance issue, but until then its nice to decouple struct OpInfo { - // Will the resourceID comparison yield the same decision as the proxyID comparison? - bool sameDecision(GrGpuResource::UniqueID resourceUniqueID, - GrSurfaceProxy::UniqueID proxyUniqueID) const { - return (fResourceUniqueID == resourceUniqueID) == - (fProxyUniqueID == proxyUniqueID); - } - struct Op { int fClientID; SkRect fBounds; }; SkRect fBounds; - // MDB TODO: remove fResourceUniqueID - GrGpuResource::UniqueID fResourceUniqueID; GrSurfaceProxy::UniqueID fProxyUniqueID; SkTArray<Op> fOps; }; @@ -148,15 +137,11 @@ private: typedef SkTArray<Op*> Ops; struct OpNode { - OpNode(const GrGpuResource::UniqueID& resourceID, const GrSurfaceProxy::UniqueID& proxyID) - : fResourceUniqueID(resourceID) - , fProxyUniqueID(proxyID) { - } + OpNode(const GrSurfaceProxy::UniqueID& proxyID) : fProxyUniqueID(proxyID) { } SkString toJson() const; SkRect fBounds; Ops fChildren; - const GrGpuResource::UniqueID fResourceUniqueID; const GrSurfaceProxy::UniqueID fProxyUniqueID; }; typedef SkTArray<std::unique_ptr<OpNode>, true> OpList; @@ -189,8 +174,8 @@ private: #define GR_AUDIT_TRAIL_RESET(audit_trail) \ //GR_AUDIT_TRAIL_INVOKE_GUARD(audit_trail, fullReset); -#define GR_AUDIT_TRAIL_ADD_OP(audit_trail, op, resource_id, proxy_id) \ - GR_AUDIT_TRAIL_INVOKE_GUARD(audit_trail, addOp, op, resource_id, proxy_id); +#define GR_AUDIT_TRAIL_ADD_OP(audit_trail, op, proxy_id) \ + GR_AUDIT_TRAIL_INVOKE_GUARD(audit_trail, addOp, op, proxy_id); #define GR_AUDIT_TRAIL_OPS_RESULT_COMBINED(audit_trail, combineWith, op) \ GR_AUDIT_TRAIL_INVOKE_GUARD(audit_trail, opsCombined, combineWith, op); |