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

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

Issue 1034733004: Debugger: remove dead feature (SkPicture offset display) & fix bug (unbalanced indents) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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/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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 this->INHERITED::onClipRect(large, SkRegion::kReplace_Op, kHard_ClipEdgeStyl e); 44 this->INHERITED::onClipRect(large, SkRegion::kReplace_Op, kHard_ClipEdgeStyl e);
45 } 45 }
46 46
47 SkDebugCanvas::~SkDebugCanvas() { 47 SkDebugCanvas::~SkDebugCanvas() {
48 fCommandVector.deleteAll(); 48 fCommandVector.deleteAll();
49 SkSafeUnref(fOverdrawFilter); 49 SkSafeUnref(fOverdrawFilter);
50 SkSafeUnref(fTexOverrideFilter); 50 SkSafeUnref(fTexOverrideFilter);
51 } 51 }
52 52
53 void SkDebugCanvas::addDrawCommand(SkDrawCommand* command) { 53 void SkDebugCanvas::addDrawCommand(SkDrawCommand* command) {
54 command->setOffset(this->getOpID());
55 fCommandVector.push(command); 54 fCommandVector.push(command);
56 } 55 }
57 56
58 void SkDebugCanvas::draw(SkCanvas* canvas) { 57 void SkDebugCanvas::draw(SkCanvas* canvas) {
59 if (!fCommandVector.isEmpty()) { 58 if (!fCommandVector.isEmpty()) {
60 this->drawTo(canvas, fCommandVector.count() - 1); 59 this->drawTo(canvas, fCommandVector.count() - 1);
61 } 60 }
62 } 61 }
63 62
64 void SkDebugCanvas::applyUserTransform(SkCanvas* canvas) { 63 void SkDebugCanvas::applyUserTransform(SkCanvas* canvas) {
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 672 }
674 673
675 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 674 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
676 if (fCalledAddStackData) { 675 if (fCalledAddStackData) {
677 fClipStackData.appendf("<br>"); 676 fClipStackData.appendf("<br>");
678 addPathData(devPath, "pathOut"); 677 addPathData(devPath, "pathOut");
679 return true; 678 return true;
680 } 679 }
681 return false; 680 return false;
682 } 681 }
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