diff options
author | mtklein <mtklein@chromium.org> | 2014-12-12 08:46:25 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-12 08:46:25 -0800 |
commit | f0f14113431ace669f278fdd97b50950f2cf4c80 (patch) | |
tree | 1fab64f424d97fdd089622f10b3d5335bc4f1380 /src/utils/debugger/SkDrawCommand.cpp | |
parent | 59dba146fe4170c4986b2494414c08be2c93d4a2 (diff) |
Cull pushCull and popCull from Skia.
These calls are unused and going away. Waiting on crrev.com/796083002.
BUG=skia:
Review URL: https://codereview.chromium.org/794263002
Diffstat (limited to 'src/utils/debugger/SkDrawCommand.cpp')
-rw-r--r-- | src/utils/debugger/SkDrawCommand.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/utils/debugger/SkDrawCommand.cpp b/src/utils/debugger/SkDrawCommand.cpp index 02beee7ced..e7989cc001 100644 --- a/src/utils/debugger/SkDrawCommand.cpp +++ b/src/utils/debugger/SkDrawCommand.cpp @@ -65,8 +65,6 @@ const char* SkDrawCommand::GetCommandString(DrawType type) { case COMMENT: return "Comment"; case END_COMMENT_GROUP: return "EndCommentGroup"; case DRAW_DRRECT: return "Draw DRRect"; - case PUSH_CULL: return "PushCull"; - case POP_CULL: return "PopCull"; default: SkDebugf("DrawType error 0x%08x\n", type); SkASSERT(0); @@ -972,27 +970,3 @@ void SkTranslateCommand::execute(SkCanvas* canvas) const { canvas->translate(fDx, fDy); } -SkPushCullCommand::SkPushCullCommand(const SkRect& cullRect) - : INHERITED(PUSH_CULL) - , fCullRect(cullRect) { - fInfo.push(SkObjectParser::RectToString(cullRect)); -} - -void SkPushCullCommand::execute(SkCanvas* canvas) const { - canvas->pushCull(fCullRect); -} - -void SkPushCullCommand::vizExecute(SkCanvas* canvas) const { - canvas->pushCull(fCullRect); - - SkPaint p; - p.setColor(SK_ColorCYAN); - p.setStyle(SkPaint::kStroke_Style); - canvas->drawRect(fCullRect, p); -} - -SkPopCullCommand::SkPopCullCommand() : INHERITED(POP_CULL) { } - -void SkPopCullCommand::execute(SkCanvas* canvas) const { - canvas->popCull(); -} |