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

Unified Diff: src/utils/debugger/SkDebugCanvas.h

Issue 177423013: Add cull rect visualization to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDebugCanvas.h
===================================================================
--- src/utils/debugger/SkDebugCanvas.h (revision 13645)
+++ src/utils/debugger/SkDebugCanvas.h (working copy)
@@ -254,7 +254,7 @@
virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE;
- void markActiveSaveLayers(int index);
+ void markActiveCommands(int index);
private:
SkTDArray<SkDrawCommand*> fCommandVector;
@@ -281,6 +281,18 @@
*/
int fOutstandingSaveCount;
+ /**
+ The active saveLayer commands at a given point in the renderering.
+ Only used when "mega" visualization is enabled.
+ */
+ SkTDArray<SkDrawCommand*> fActiveLayers;
+
+ /**
+ The active cull commands at a given point in the rendering.
+ Only used when "mega" visualization is enabled.
+ */
+ SkTDArray<SkDrawCommand*> fActiveCulls;
+
/**
Adds the command to the classes vector of commands.
@param command The draw command for execution
« no previous file with comments | « no previous file | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698