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

Unified Diff: debugger/QT/SkDebuggerGUI.cpp

Issue 1048383002: [SkDebugger] Flatten drawPicture ops (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 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 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: debugger/QT/SkDebuggerGUI.cpp
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index c51f24243dab15be99a0ab7f5d5d281e16bfcb00..237f701ccb7f3466c59db724840731ba39ad8708 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -783,7 +783,10 @@ void SkDebuggerGUI::setupListWidget() {
SkDrawCommand::GetCommandString(SkDrawCommand::kBeginCommentGroup_OpType)));
SkASSERT(!strcmp("EndCommentGroup",
SkDrawCommand::GetCommandString(SkDrawCommand::kEndCommentGroup_OpType)));
-
+ SkASSERT(!strcmp("BeginDrawPicture",
+ SkDrawCommand::GetCommandString(SkDrawCommand::kBeginDrawPicture_OpType)));
+ SkASSERT(!strcmp("EndDrawPicture",
+ SkDrawCommand::GetCommandString(SkDrawCommand::kEndDrawPicture_OpType)));
fListWidget.clear();
int counter = 0;
@@ -796,7 +799,8 @@ void SkDebuggerGUI::setupListWidget() {
item->setData(Qt::UserRole + 1, counter++);
if (0 == strcmp("Restore", commandString.c_str()) ||
- 0 == strcmp("EndCommentGroup", commandString.c_str())) {
+ 0 == strcmp("EndCommentGroup", commandString.c_str()) ||
+ 0 == strcmp("EndDrawPicture", commandString.c_str())) {
indent -= 10;
}
@@ -804,7 +808,8 @@ void SkDebuggerGUI::setupListWidget() {
if (0 == strcmp("Save", commandString.c_str()) ||
0 == strcmp("SaveLayer", commandString.c_str()) ||
- 0 == strcmp("BeginCommentGroup", commandString.c_str())) {
+ 0 == strcmp("BeginCommentGroup", commandString.c_str()) ||
+ 0 == strcmp("BeginDrawPicture", commandString.c_str())) {
indent += 10;
}
« 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