aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dump_record.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-29 16:52:40 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-29 16:52:40 +0000
commita095041f5148dd1e71f38d0546335ed94199104b (patch)
tree63730963cc5cb4be0430263ed195b217e0341e04 /tools/dump_record.cpp
parentcac02e52cda552fc792b0035a8b03b08c33ed35d (diff)
Remove SkRecorder's kWriteOnly mode.
I'm soon going to have SkRecorder start calling getTotalMatrix(), which would be broken in write-only mode. That change is big and nebulous, but it's clear kWriteOnly needs to go, so we might as well kill it now. My notes in bench_playback about kWriteOnly mode being important were probably overly cautious. I now think this is a fair enough comparison even re-recording into a read-write canvas. BUG=skia:2378 R=fmalita@chromium.org, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/290653004 git-svn-id: http://skia.googlecode.com/svn/trunk@14963 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/dump_record.cpp')
-rw-r--r--tools/dump_record.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/dump_record.cpp b/tools/dump_record.cpp
index 14b1a5bbe0..4fb1cf502f 100644
--- a/tools/dump_record.cpp
+++ b/tools/dump_record.cpp
@@ -60,10 +60,9 @@ int tool_main(int argc, char** argv) {
const int w = src->width(), h = src->height();
SkRecord record;
- SkRecorder canvas(SkRecorder::kWriteOnly_Mode, &record, w, h);
+ SkRecorder canvas(&record, w, h);
src->draw(&canvas);
-
if (FLAGS_optimize) {
SkRecordOptimize(&record);
}