Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: tools/debugger/SkDebugCanvas.h

Issue 1745063002: Render batch bounds as stroke rects (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: tweaks Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrAuditTrail.cpp ('k') | tools/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrAuditTrail.cpp ('k') | tools/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698