OLD | NEW |
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 Loading... |
104 fDebugCanvas->setAllowSimplifyClip(pathOps); | 104 fDebugCanvas->setAllowSimplifyClip(pathOps); |
105 } | 105 } |
106 } | 106 } |
107 | 107 |
108 void setMegaViz(bool megaViz) { | 108 void setMegaViz(bool megaViz) { |
109 if (fDebugCanvas) { | 109 if (fDebugCanvas) { |
110 fDebugCanvas->setMegaVizMode(megaViz); | 110 fDebugCanvas->setMegaVizMode(megaViz); |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level
) { | 114 void setTexFilterOverride(bool texFilterOverride, SkFilterQuality quality) { |
115 if (fDebugCanvas) { | 115 if (fDebugCanvas) { |
116 fDebugCanvas->overrideTexFiltering(texFilterOverride, level); | 116 fDebugCanvas->overrideTexFiltering(texFilterOverride, quality); |
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, | 120 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, |
121 SkString* overview, int numRuns); | 121 SkString* overview, int numRuns); |
122 | 122 |
123 void getClipStackText(SkString* clipStack); | 123 void getClipStackText(SkString* clipStack); |
124 | 124 |
125 private: | 125 private: |
126 SkDebugCanvas* fDebugCanvas; | 126 SkDebugCanvas* fDebugCanvas; |
127 SkPicture* fPicture; | 127 SkPicture* fPicture; |
128 | 128 |
129 int fIndex; | 129 int fIndex; |
130 }; | 130 }; |
131 | 131 |
132 | 132 |
133 #endif /* SKDEBUGGER_H_ */ | 133 #endif /* SKDEBUGGER_H_ */ |
OLD | NEW |