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

Side by Side Diff: debugger/SkDebugger.h

Issue 282283002: add pathops to debugger (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: make getAllowSimplifyClip const Created 6 years, 7 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 | « debugger/QT/SkSettingsWidget.cpp ('k') | debugger/SkDebugger.cpp » ('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 #ifndef SKDEBUGGER_H_ 10 #ifndef SKDEBUGGER_H_
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int index() { 104 int index() {
105 return fIndex; 105 return fIndex;
106 } 106 }
107 107
108 void setOverdrawViz(bool overDrawViz) { 108 void setOverdrawViz(bool overDrawViz) {
109 if (NULL != fDebugCanvas) { 109 if (NULL != fDebugCanvas) {
110 fDebugCanvas->setOverdrawViz(overDrawViz); 110 fDebugCanvas->setOverdrawViz(overDrawViz);
111 } 111 }
112 } 112 }
113 113
114 void setPathOps(bool pathOps) {
115 if (NULL != fDebugCanvas) {
116 fDebugCanvas->setAllowSimplifyClip(pathOps);
117 }
118 }
119
114 void setMegaViz(bool megaViz) { 120 void setMegaViz(bool megaViz) {
115 if (NULL != fDebugCanvas) { 121 if (NULL != fDebugCanvas) {
116 fDebugCanvas->setMegaVizMode(megaViz); 122 fDebugCanvas->setMegaVizMode(megaViz);
117 } 123 }
118 } 124 }
119 125
120 void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level ) { 126 void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level ) {
121 if (NULL != fDebugCanvas) { 127 if (NULL != fDebugCanvas) {
122 fDebugCanvas->overrideTexFiltering(texFilterOverride, level); 128 fDebugCanvas->overrideTexFiltering(texFilterOverride, level);
123 } 129 }
124 } 130 }
125 131
126 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, 132 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime,
127 SkString* overview, int numRuns); 133 SkString* overview, int numRuns);
128 134
135 void getClipStackText(SkString* clipStack);
136
129 private: 137 private:
130 SkDebugCanvas* fDebugCanvas; 138 SkDebugCanvas* fDebugCanvas;
131 SkPicture* fPicture; 139 SkPicture* fPicture;
132 140
133 int fPictureWidth; 141 int fPictureWidth;
134 int fPictureHeight; 142 int fPictureHeight;
135 int fIndex; 143 int fIndex;
136 }; 144 };
137 145
138 146
139 #endif /* SKDEBUGGER_H_ */ 147 #endif /* SKDEBUGGER_H_ */
OLDNEW
« no previous file with comments | « debugger/QT/SkSettingsWidget.cpp ('k') | debugger/SkDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698