Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: tools/debugger/SkDebugCanvas.cpp

Issue 1747893002: Revert of Add abilitly to query audit trail for batches by draw op (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrAuditTrail.cpp ('k') | tools/debugger/SkDrawCommand.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCanvasPriv.h" 8 #include "SkCanvasPriv.h"
9 #include "SkClipStack.h" 9 #include "SkClipStack.h"
10 #include "SkDebugCanvas.h" 10 #include "SkDebugCanvas.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 SkTDArray <SkDrawCommand*>& SkDebugCanvas::getDrawCommands() { 330 SkTDArray <SkDrawCommand*>& SkDebugCanvas::getDrawCommands() {
331 return fCommandVector; 331 return fCommandVector;
332 } 332 }
333 333
334 Json::Value SkDebugCanvas::toJSON(UrlDataManager& urlDataManager, int n, SkCanva s* canvas) { 334 Json::Value SkDebugCanvas::toJSON(UrlDataManager& urlDataManager, int n, SkCanva s* canvas) {
335 Json::Value result = Json::Value(Json::objectValue); 335 Json::Value result = Json::Value(Json::objectValue);
336 result[SKDEBUGCANVAS_ATTRIBUTE_VERSION] = Json::Value(SKDEBUGCANVAS_VERSION) ; 336 result[SKDEBUGCANVAS_ATTRIBUTE_VERSION] = Json::Value(SKDEBUGCANVAS_VERSION) ;
337 Json::Value commands = Json::Value(Json::arrayValue); 337 Json::Value commands = Json::Value(Json::arrayValue);
338 for (int i = 0; i < this->getSize() && i <= n; i++) { 338 for (int i = 0; i < this->getSize() && i <= n; i++) {
339 commands[i] = this->getDrawCommandAt(i)->drawToAndCollectJSON(canvas, ur lDataManager, 339 commands[i] = this->getDrawCommandAt(i)->drawToAndCollectJSON(canvas, ur lDataManager);
340 i);
341 } 340 }
342 result[SKDEBUGCANVAS_ATTRIBUTE_COMMANDS] = commands; 341 result[SKDEBUGCANVAS_ATTRIBUTE_COMMANDS] = commands;
343 return result; 342 return result;
344 } 343 }
345 344
346 void SkDebugCanvas::updatePaintFilterCanvas() { 345 void SkDebugCanvas::updatePaintFilterCanvas() {
347 if (!fOverdrawViz && !fOverrideFilterQuality) { 346 if (!fOverdrawViz && !fOverrideFilterQuality) {
348 fPaintFilterCanvas.reset(nullptr); 347 fPaintFilterCanvas.reset(nullptr);
349 return; 348 return;
350 } 349 }
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 } 644 }
646 645
647 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 646 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
648 if (fCalledAddStackData) { 647 if (fCalledAddStackData) {
649 fClipStackData.appendf("<br>"); 648 fClipStackData.appendf("<br>");
650 addPathData(devPath, "pathOut"); 649 addPathData(devPath, "pathOut");
651 return true; 650 return true;
652 } 651 }
653 return false; 652 return false;
654 } 653 }
OLDNEW
« no previous file with comments | « src/gpu/GrAuditTrail.cpp ('k') | tools/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698