diff options
author | 2014-05-01 21:06:39 +0000 | |
---|---|---|
committer | 2014-05-01 21:06:39 +0000 | |
commit | 90d81c96746c7a38e1b55e9b6c3068c7ba756b7f (patch) | |
tree | f62dc5d776761e537d6beca125e744dfb9a2874f /dm/DMRecordTask.cpp | |
parent | 020636350b4a76fb3402a25c1e37ecff649cb350 (diff) |
DM: Apply initial transform in --skr mode.
BUG=skia:2378
R=reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/263853005
git-svn-id: http://skia.googlecode.com/svn/trunk@14521 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'dm/DMRecordTask.cpp')
-rw-r--r-- | dm/DMRecordTask.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dm/DMRecordTask.cpp b/dm/DMRecordTask.cpp index 31c46a69da..eb8ceecbbd 100644 --- a/dm/DMRecordTask.cpp +++ b/dm/DMRecordTask.cpp @@ -18,6 +18,7 @@ RecordTask::RecordTask(const Task& parent, skiagm::GM* gm, SkBitmap reference) void RecordTask::draw() { // Record the GM into an SkRecord. EXPERIMENTAL::SkRecording recording(fReference.width(), fReference.height()); + recording.canvas()->concat(fGM->getInitialTransform()); fGM->draw(recording.canvas()); SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback(recording.releasePlayback()); |