aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/debugger/SkDebugCanvas.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2016-12-20 16:14:45 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-20 21:50:09 +0000
commit42ad83ac194c4c1848fef95e6cdcad83729e6ecf (patch)
tree777ea2bfd36b4db5cc2f0cd6efcb39513e56333b /tools/debugger/SkDebugCanvas.cpp
parentb44bb31137787b9dcc530d9061e3a08cf261da23 (diff)
Rename batch->op in GrAuditTrail.
Change-Id: I68670e5ceb06716e9928ee58485d63e157c7aca7 Reviewed-on: https://skia-review.googlesource.com/6345 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tools/debugger/SkDebugCanvas.cpp')
-rw-r--r--tools/debugger/SkDebugCanvas.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp
index 8199796d72..50e4512182 100644
--- a/tools/debugger/SkDebugCanvas.cpp
+++ b/tools/debugger/SkDebugCanvas.cpp
@@ -251,9 +251,9 @@ void SkDebugCanvas::drawTo(SkCanvas* canvas, int index, int m) {
// created, so if we allow them to combine, the audit trail will fail to find them.
canvas->flush();
- GrAuditTrail::AutoCollectBatches* acb = nullptr;
+ GrAuditTrail::AutoCollectOps* acb = nullptr;
if (at) {
- acb = new GrAuditTrail::AutoCollectBatches(at, i);
+ acb = new GrAuditTrail::AutoCollectOps(at, i);
}
#endif
@@ -351,12 +351,12 @@ void SkDebugCanvas::drawTo(SkCanvas* canvas, int index, int m) {
GrGpuResource::UniqueID rtID = rtc->accessRenderTarget()->uniqueID();
// get the bounding boxes to draw
- SkTArray<GrAuditTrail::BatchInfo> childrenBounds;
+ SkTArray<GrAuditTrail::OpInfo> childrenBounds;
if (m == -1) {
at->getBoundsByClientID(&childrenBounds, index);
} else {
// the client wants us to draw the mth batch
- at->getBoundsByBatchListID(&childrenBounds.push_back(), m);
+ at->getBoundsByOpListID(&childrenBounds.push_back(), m);
}
SkPaint paint;
paint.setStyle(SkPaint::kStroke_Style);
@@ -368,8 +368,8 @@ void SkDebugCanvas::drawTo(SkCanvas* canvas, int index, int m) {
}
paint.setColor(kTotalBounds);
canvas->drawRect(childrenBounds[i].fBounds, paint);
- for (int j = 0; j < childrenBounds[i].fBatches.count(); j++) {
- const GrAuditTrail::BatchInfo::Batch& batch = childrenBounds[i].fBatches[j];
+ for (int j = 0; j < childrenBounds[i].fOps.count(); j++) {
+ const GrAuditTrail::OpInfo::Op& batch = childrenBounds[i].fOps[j];
if (batch.fClientID != index) {
paint.setColor(kOtherBatchBounds);
} else {
@@ -436,7 +436,7 @@ void SkDebugCanvas::drawAndCollectBatches(int n, SkCanvas* canvas) {
// loop over all of the commands and draw them, this is to collect reordering
// information
for (int i = 0; i < this->getSize() && i <= n; i++) {
- GrAuditTrail::AutoCollectBatches enable(at, i);
+ GrAuditTrail::AutoCollectOps enable(at, i);
fCommandVector[i]->execute(canvas);
}
@@ -495,7 +495,7 @@ Json::Value SkDebugCanvas::toJSONBatchList(int n, SkCanvas* canvas) {
#if SK_SUPPORT_GPU
GrAuditTrail* at = this->getAuditTrail(canvas);
if (at) {
- GrAuditTrail::AutoManageBatchList enable(at);
+ GrAuditTrail::AutoManageOpList enable(at);
Json::Reader reader;
SkAssertResult(reader.parse(at->toJson().c_str(), parsedFromString));
}