diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-31 10:03:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-31 16:11:30 +0000 |
commit | f7a7261b4ac23f97580a8ff6f0307b3c47399b9d (patch) | |
tree | 3d50ff5737ce2dd1f45c05b3de6814ec6a589d59 /src/gpu/GrTextureOpList.cpp | |
parent | 9bd301d640ff63c280b202c7dd00bc00a3315ff4 (diff) |
Add tracking of unique proxyID beside unique renderTargetID in auditTrail and clearOp
Split out of: https://skia-review.googlesource.com/c/10284/ (Omnibus: Remove GrSurface-derived classes from ops)
Change-Id: I5845a47d94decc455ec3b1f0a5876b1c82aa32e8
Reviewed-on: https://skia-review.googlesource.com/10750
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureOpList.cpp')
-rw-r--r-- | src/gpu/GrTextureOpList.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gpu/GrTextureOpList.cpp b/src/gpu/GrTextureOpList.cpp index 2a021d231a..668e8a3bc8 100644 --- a/src/gpu/GrTextureOpList.cpp +++ b/src/gpu/GrTextureOpList.cpp @@ -89,15 +89,19 @@ bool GrTextureOpList::copySurface(GrSurface* dst, #endif // See the comment in GrRenderTargetOpList about why we pass the invalid ID here. - this->recordOp(std::move(op), GrGpuResource::UniqueID::InvalidID()); + this->recordOp(std::move(op), + GrGpuResource::UniqueID::InvalidID(), + GrSurfaceProxy::UniqueID::InvalidID()); return true; } -void GrTextureOpList::recordOp(std::unique_ptr<GrOp> op, GrGpuResource::UniqueID renderTargetID) { +void GrTextureOpList::recordOp(std::unique_ptr<GrOp> op, + GrGpuResource::UniqueID resourceUniqueID, + GrSurfaceProxy::UniqueID proxyUniqueID) { // A closed GrOpList should never receive new/more ops SkASSERT(!this->isClosed()); - GR_AUDIT_TRAIL_ADD_OP(fAuditTrail, op.get(), renderTargetID); + GR_AUDIT_TRAIL_ADD_OP(fAuditTrail, op.get(), resourceUniqueID, proxyUniqueID); GrOP_INFO("Re-Recording (%s, B%u)\n" "\tBounds LRTB (%f, %f, %f, %f)\n", op->name(), |