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 /tools | |
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 'tools')
-rw-r--r-- | tools/debugger/SkDebugCanvas.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp index 6349810ff9..2d7d040c27 100644 --- a/tools/debugger/SkDebugCanvas.cpp +++ b/tools/debugger/SkDebugCanvas.cpp @@ -362,7 +362,8 @@ void SkDebugCanvas::drawTo(SkCanvas* originalCanvas, int index, int m) { paint.setStyle(SkPaint::kStroke_Style); paint.setStrokeWidth(1); for (int i = 0; i < childrenBounds.count(); i++) { - if (childrenBounds[i].fRenderTargetUniqueID != rtID) { + SkASSERT(childrenBounds[i].sameDecision(rtID, rtc->asSurfaceProxy()->uniqueID())); + if (childrenBounds[i].fResourceUniqueID != rtID) { // offscreen draw, ignore for now continue; } |