diff options
author | 2014-05-15 17:33:31 +0000 | |
---|---|---|
committer | 2014-05-15 17:33:31 +0000 | |
commit | 266420722e18dcc8b6d4a7379a42b8591ccd2b6d (patch) | |
tree | ae5e573c8f2184d7eac06e8b317d46d914bc9546 /dm/DMRecordTask.cpp | |
parent | 85fd1932231e21703fc4e1846a3769b5a5119c77 (diff) |
refactor DM::SetupBitmap
Seemed sort of repetitive.
BUG=skia:
R=reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/286993005
git-svn-id: http://skia.googlecode.com/svn/trunk@14752 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'dm/DMRecordTask.cpp')
-rw-r--r-- | dm/DMRecordTask.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dm/DMRecordTask.cpp b/dm/DMRecordTask.cpp index ce27aaa6f9..8241ac5aeb 100644 --- a/dm/DMRecordTask.cpp +++ b/dm/DMRecordTask.cpp @@ -47,11 +47,7 @@ void RecordTask::draw() { // Draw the SkRecord back into a bitmap. SkBitmap bitmap; - if (fGM.get()) { - SetupBitmap(fReference.colorType(), fGM.get(), &bitmap); - } else { - SetupBitmap(fReference.colorType(), *fPicture, &bitmap); - } + AllocatePixels(fReference, &bitmap); SkCanvas target(bitmap); SkRecordDraw(record, &target); |