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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.cpp

Issue 712683002: Revert of SkDrawCommand scrubbing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/utils/debugger/SkDebugCanvas.h ('k') | src/utils/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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 SkASSERT(index < fCommandVector.count()); 372 SkASSERT(index < fCommandVector.count());
373 return fCommandVector[index]; 373 return fCommandVector[index];
374 } 374 }
375 375
376 void SkDebugCanvas::setDrawCommandAt(int index, SkDrawCommand* command) { 376 void SkDebugCanvas::setDrawCommandAt(int index, SkDrawCommand* command) {
377 SkASSERT(index < fCommandVector.count()); 377 SkASSERT(index < fCommandVector.count());
378 delete fCommandVector[index]; 378 delete fCommandVector[index];
379 fCommandVector[index] = command; 379 fCommandVector[index] = command;
380 } 380 }
381 381
382 const SkTDArray<SkString*>* SkDebugCanvas::getCommandInfo(int index) const { 382 SkTDArray<SkString*>* SkDebugCanvas::getCommandInfo(int index) {
383 SkASSERT(index < fCommandVector.count()); 383 SkASSERT(index < fCommandVector.count());
384 return fCommandVector[index]->Info(); 384 return fCommandVector[index]->Info();
385 } 385 }
386 386
387 bool SkDebugCanvas::getDrawCommandVisibilityAt(int index) { 387 bool SkDebugCanvas::getDrawCommandVisibilityAt(int index) {
388 SkASSERT(index < fCommandVector.count()); 388 SkASSERT(index < fCommandVector.count());
389 return fCommandVector[index]->isVisible(); 389 return fCommandVector[index]->isVisible();
390 } 390 }
391 391
392 const SkTDArray <SkDrawCommand*>& SkDebugCanvas::getDrawCommands() const { 392 const SkTDArray <SkDrawCommand*>& SkDebugCanvas::getDrawCommands() const {
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 } 733 }
734 734
735 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 735 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
736 if (fCalledAddStackData) { 736 if (fCalledAddStackData) {
737 fClipStackData.appendf("<br>"); 737 fClipStackData.appendf("<br>");
738 addPathData(devPath, "pathOut"); 738 addPathData(devPath, "pathOut");
739 return true; 739 return true;
740 } 740 }
741 return false; 741 return false;
742 } 742 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.h ('k') | src/utils/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698