diff options
author | fmalita <fmalita@chromium.org> | 2015-04-01 20:58:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-01 20:58:37 -0700 |
commit | 160ebb2bfa0794d72d31a786793b13413289863d (patch) | |
tree | 57282f67cbd7af155899bba2c6a41010d47cc644 /debugger | |
parent | 82973dbf4f22928e8dd75c8bc5b155f842c8a557 (diff) |
[SkDebugger] Flatten drawPicture ops
Add two drawPicture bracketing ops (BeginDrawPicture, EndDrawPicture) to
replace the current DrawPicture op, and flatten picture contents.
Review URL: https://codereview.chromium.org/1048383002
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/QT/SkDebuggerGUI.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp index c51f24243d..237f701ccb 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; } |