| 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 25 matching lines...) Expand all Loading... |
| 36 */ | 36 */ |
| 37 void setOverdrawViz(bool overdrawViz); | 37 void setOverdrawViz(bool overdrawViz); |
| 38 bool getOverdrawViz() const { return fOverdrawViz; } | 38 bool getOverdrawViz() const { return fOverdrawViz; } |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * Set the color of the clip visualization. An alpha of zero renders the cli
p invisible. | 41 * Set the color of the clip visualization. An alpha of zero renders the cli
p invisible. |
| 42 */ | 42 */ |
| 43 void setClipVizColor(SkColor clipVizColor) { this->fClipVizColor = clipVizCo
lor; } | 43 void setClipVizColor(SkColor clipVizColor) { this->fClipVizColor = clipVizCo
lor; } |
| 44 SkColor getClipVizColor() const { return fClipVizColor; } | 44 SkColor getClipVizColor() const { return fClipVizColor; } |
| 45 | 45 |
| 46 void setDrawGpuBatchBounds(bool drawGpuBatchBounds) { |
| 47 fDrawGpuBatchBounds = drawGpuBatchBounds; |
| 48 } |
| 49 |
| 46 bool getAllowSimplifyClip() const { return fAllowSimplifyClip; } | 50 bool getAllowSimplifyClip() const { return fAllowSimplifyClip; } |
| 47 | 51 |
| 48 void setPicture(SkPicture* picture) { fPicture = picture; } | 52 void setPicture(SkPicture* picture) { fPicture = picture; } |
| 49 | 53 |
| 50 /** | 54 /** |
| 51 * Enable or disable texure filtering override | 55 * Enable or disable texure filtering override |
| 52 */ | 56 */ |
| 53 void overrideTexFiltering(bool overrideTexFiltering, SkFilterQuality); | 57 void overrideTexFiltering(bool overrideTexFiltering, SkFilterQuality); |
| 54 | 58 |
| 55 /** | 59 /** |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 SkIRect fClip; | 242 SkIRect fClip; |
| 239 | 243 |
| 240 SkString fClipStackData; | 244 SkString fClipStackData; |
| 241 bool fCalledAddStackData; | 245 bool fCalledAddStackData; |
| 242 SkPath fSaveDevPath; | 246 SkPath fSaveDevPath; |
| 243 | 247 |
| 244 bool fOverdrawViz; | 248 bool fOverdrawViz; |
| 245 bool fOverrideFilterQuality; | 249 bool fOverrideFilterQuality; |
| 246 SkFilterQuality fFilterQuality; | 250 SkFilterQuality fFilterQuality; |
| 247 SkColor fClipVizColor; | 251 SkColor fClipVizColor; |
| 252 bool fDrawGpuBatchBounds; |
| 248 | 253 |
| 249 SkAutoTUnref<SkNWayCanvas> fPaintFilterCanvas; | 254 SkAutoTUnref<SkNWayCanvas> fPaintFilterCanvas; |
| 250 | 255 |
| 251 /** | 256 /** |
| 252 The active saveLayer commands at a given point in the renderering. | 257 The active saveLayer commands at a given point in the renderering. |
| 253 Only used when "mega" visualization is enabled. | 258 Only used when "mega" visualization is enabled. |
| 254 */ | 259 */ |
| 255 SkTDArray<SkDrawCommand*> fActiveLayers; | 260 SkTDArray<SkDrawCommand*> fActiveLayers; |
| 256 | 261 |
| 257 /** | 262 /** |
| (...skipping 17 matching lines...) Expand all Loading... |
| 275 void outputPoints(const SkPoint* pts, int count); | 280 void outputPoints(const SkPoint* pts, int count); |
| 276 void outputPointsCommon(const SkPoint* pts, int count); | 281 void outputPointsCommon(const SkPoint* pts, int count); |
| 277 void outputScalar(SkScalar num); | 282 void outputScalar(SkScalar num); |
| 278 | 283 |
| 279 void updatePaintFilterCanvas(); | 284 void updatePaintFilterCanvas(); |
| 280 | 285 |
| 281 typedef SkCanvas INHERITED; | 286 typedef SkCanvas INHERITED; |
| 282 }; | 287 }; |
| 283 | 288 |
| 284 #endif | 289 #endif |
| OLD | NEW |