aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMRecordTask.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 /dm/DMRecordTask.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 'dm/DMRecordTask.cpp')
-rw-r--r--dm/DMRecordTask.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dm/DMRecordTask.cpp b/dm/DMRecordTask.cpp
index 8241ac5aeb..28633f20da 100644
--- a/dm/DMRecordTask.cpp
+++ b/dm/DMRecordTask.cpp
@@ -30,8 +30,7 @@ RecordTask::RecordTask(const Task& parent, SkPicture* pic, SkBitmap reference, M
void RecordTask::draw() {
// Record into an SkRecord.
SkRecord record;
- SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record,
- fReference.width(), fReference.height());
+ SkRecorder recorder(&record, fReference.width(), fReference.height());
if (fGM.get()) {
recorder.concat(fGM->getInitialTransform());