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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 SkRect pictureCull() const { | 94 SkRect pictureCull() const { |
95 return NULL == fPicture ? SkRect::MakeEmpty() : fPicture->cullRect(); | 95 return NULL == fPicture ? SkRect::MakeEmpty() : fPicture->cullRect(); |
96 } | 96 } |
97 | 97 |
98 int index() { | 98 int index() { |
99 return fIndex; | 99 return fIndex; |
100 } | 100 } |
101 | 101 |
102 void setOverdrawViz(bool overDrawViz) { | 102 void setOverdrawViz(bool overDrawViz) { |
103 if (NULL != fDebugCanvas) { | 103 if (fDebugCanvas) { |
104 fDebugCanvas->setOverdrawViz(overDrawViz); | 104 fDebugCanvas->setOverdrawViz(overDrawViz); |
105 } | 105 } |
106 } | 106 } |
107 | 107 |
108 void setPathOps(bool pathOps) { | 108 void setPathOps(bool pathOps) { |
109 if (NULL != fDebugCanvas) { | 109 if (fDebugCanvas) { |
110 fDebugCanvas->setAllowSimplifyClip(pathOps); | 110 fDebugCanvas->setAllowSimplifyClip(pathOps); |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 void setMegaViz(bool megaViz) { | 114 void setMegaViz(bool megaViz) { |
115 if (NULL != fDebugCanvas) { | 115 if (fDebugCanvas) { |
116 fDebugCanvas->setMegaVizMode(megaViz); | 116 fDebugCanvas->setMegaVizMode(megaViz); |
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level
) { | 120 void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level
) { |
121 if (NULL != fDebugCanvas) { | 121 if (fDebugCanvas) { |
122 fDebugCanvas->overrideTexFiltering(texFilterOverride, level); | 122 fDebugCanvas->overrideTexFiltering(texFilterOverride, level); |
123 } | 123 } |
124 } | 124 } |
125 | 125 |
126 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, | 126 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, |
127 SkString* overview, int numRuns); | 127 SkString* overview, int numRuns); |
128 | 128 |
129 void getClipStackText(SkString* clipStack); | 129 void getClipStackText(SkString* clipStack); |
130 | 130 |
131 private: | 131 private: |
132 SkDebugCanvas* fDebugCanvas; | 132 SkDebugCanvas* fDebugCanvas; |
133 SkPicture* fPicture; | 133 SkPicture* fPicture; |
134 | 134 |
135 int fIndex; | 135 int fIndex; |
136 }; | 136 }; |
137 | 137 |
138 | 138 |
139 #endif /* SKDEBUGGER_H_ */ | 139 #endif /* SKDEBUGGER_H_ */ |
OLD | NEW |