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 SKDEBUGCANVAS_H_ | 10 #ifndef SKDEBUGCANVAS_H_ |
(...skipping 24 matching lines...) Expand all Loading... |
35 */ | 35 */ |
36 void overrideTexFiltering(bool overrideTexFiltering, SkPaint::FilterLevel le
vel); | 36 void overrideTexFiltering(bool overrideTexFiltering, SkPaint::FilterLevel le
vel); |
37 | 37 |
38 /** | 38 /** |
39 Executes all draw calls to the canvas. | 39 Executes all draw calls to the canvas. |
40 @param canvas The canvas being drawn to | 40 @param canvas The canvas being drawn to |
41 */ | 41 */ |
42 void draw(SkCanvas* canvas); | 42 void draw(SkCanvas* canvas); |
43 | 43 |
44 /** | 44 /** |
45 Executes the draw calls in the specified range. | |
46 @param canvas The canvas being drawn to | |
47 @param i The beginning of the range | |
48 @param j The end of the range | |
49 TODO(chudy): Implement | |
50 */ | |
51 void drawRange(SkCanvas* canvas, int i, int j); | |
52 | |
53 /** | |
54 Executes the draw calls up to the specified index. | 45 Executes the draw calls up to the specified index. |
55 @param canvas The canvas being drawn to | 46 @param canvas The canvas being drawn to |
56 @param index The index of the final command being executed | 47 @param index The index of the final command being executed |
57 */ | 48 */ |
58 void drawTo(SkCanvas* canvas, int index); | 49 void drawTo(SkCanvas* canvas, int index); |
59 | 50 |
60 /** | 51 /** |
61 Returns the most recently calculated transformation matrix | 52 Returns the most recently calculated transformation matrix |
62 */ | 53 */ |
63 const SkMatrix& getCurrentMatrix() { | 54 const SkMatrix& getCurrentMatrix() { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 228 |
238 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 229 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
239 | 230 |
240 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 231 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
241 | 232 |
242 static const int kVizImageHeight = 256; | 233 static const int kVizImageHeight = 256; |
243 static const int kVizImageWidth = 256; | 234 static const int kVizImageWidth = 256; |
244 | 235 |
245 private: | 236 private: |
246 SkTDArray<SkDrawCommand*> fCommandVector; | 237 SkTDArray<SkDrawCommand*> fCommandVector; |
| 238 int fWidth; |
247 int fHeight; | 239 int fHeight; |
248 int fWidth; | |
249 SkBitmap fBm; | |
250 bool fFilter; | 240 bool fFilter; |
251 int fIndex; | 241 int fIndex; |
252 SkMatrix fUserMatrix; | 242 SkMatrix fUserMatrix; |
253 SkMatrix fMatrix; | 243 SkMatrix fMatrix; |
254 SkIRect fClip; | 244 SkIRect fClip; |
255 | 245 |
256 bool fOverdrawViz; | 246 bool fOverdrawViz; |
257 SkDrawFilter* fOverdrawFilter; | 247 SkDrawFilter* fOverdrawFilter; |
258 | 248 |
259 bool fOverrideTexFiltering; | 249 bool fOverrideTexFiltering; |
(...skipping 16 matching lines...) Expand all Loading... |
276 /** | 266 /** |
277 Applies any panning and zooming the user has specified before | 267 Applies any panning and zooming the user has specified before |
278 drawing anything else into the canvas. | 268 drawing anything else into the canvas. |
279 */ | 269 */ |
280 void applyUserTransform(SkCanvas* canvas); | 270 void applyUserTransform(SkCanvas* canvas); |
281 | 271 |
282 typedef SkCanvas INHERITED; | 272 typedef SkCanvas INHERITED; |
283 }; | 273 }; |
284 | 274 |
285 #endif | 275 #endif |
OLD | NEW |