Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2504)

Unified Diff: dm/DMRecordTask.cpp

Issue 263853005: DM: Apply initial transform in --skr mode. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMRecordTask.cpp
diff --git a/dm/DMRecordTask.cpp b/dm/DMRecordTask.cpp
index 31c46a69dac41173c1e519d1bebd7fa37fdd4839..eb8ceecbbd09dbca414df088ec1df68ae89a959e 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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698