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

Unified Diff: src/utils/debugger/SkDrawCommand.cpp

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 | « src/utils/debugger/SkDrawCommand.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDrawCommand.cpp
===================================================================
--- src/utils/debugger/SkDrawCommand.cpp (revision 13645)
+++ src/utils/debugger/SkDrawCommand.cpp (working copy)
@@ -885,6 +885,10 @@
fFlags);
}
+void SkSaveLayerCommand::vizExecute(SkCanvas* canvas) {
+ canvas->save();
+}
+
void SkSaveLayerCommand::trackSaveState(int* state) {
(*state)++;
}
@@ -946,10 +950,18 @@
}
void SkPushCullCommand::execute(SkCanvas* canvas) {
- //FIXME: add visualization overlay.
canvas->pushCull(fCullRect);
}
+void SkPushCullCommand::vizExecute(SkCanvas* canvas) {
+ canvas->pushCull(fCullRect);
+
+ SkPaint p;
+ p.setColor(SK_ColorCYAN);
+ p.setStyle(SkPaint::kStroke_Style);
+ canvas->drawRect(fCullRect, p);
+}
+
SkPopCullCommand::SkPopCullCommand() {
fDrawType = POP_CULL;
}
« no previous file with comments | « src/utils/debugger/SkDrawCommand.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698