From a095041f5148dd1e71f38d0546335ed94199104b Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 29 May 2014 16:52:40 +0000 Subject: 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 --- tools/dump_record.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/dump_record.cpp') 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); } -- cgit v1.2.3