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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 int index() { | 100 int index() { |
101 return fIndex; | 101 return fIndex; |
102 } | 102 } |
103 | 103 |
104 void setOverdrawViz(bool overDrawViz) { | 104 void setOverdrawViz(bool overDrawViz) { |
105 if (NULL != fDebugCanvas) { | 105 if (NULL != fDebugCanvas) { |
106 fDebugCanvas->setOverdrawViz(overDrawViz); | 106 fDebugCanvas->setOverdrawViz(overDrawViz); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
| 110 void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level
) { |
| 111 if (NULL != fDebugCanvas) { |
| 112 fDebugCanvas->overrideTexFiltering(texFilterOverride, level); |
| 113 } |
| 114 } |
| 115 |
110 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, | 116 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, |
111 SkString* overview, int numRuns); | 117 SkString* overview, int numRuns); |
112 | 118 |
113 private: | 119 private: |
114 SkDebugCanvas* fDebugCanvas; | 120 SkDebugCanvas* fDebugCanvas; |
115 SkPicture* fPicture; | 121 SkPicture* fPicture; |
116 | 122 |
117 int fPictureWidth; | 123 int fPictureWidth; |
118 int fPictureHeight; | 124 int fPictureHeight; |
119 int fIndex; | 125 int fIndex; |
120 }; | 126 }; |
121 | 127 |
122 | 128 |
123 #endif /* SKDEBUGGER_H_ */ | 129 #endif /* SKDEBUGGER_H_ */ |
OLD | NEW |