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

Side by Side Diff: dm/DMSKPTask.cpp

Issue 270543004: DM: Add --skps. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix and verbatim Created 6 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 #include "DMRecordTask.h"
2 #include "DMSKPTask.h"
3 #include "DMUtil.h"
4 #include "DMWriteTask.h"
5
6 namespace DM {
7
8 SKPTask::SKPTask(Reporter* r, TaskRunner* tr, SkPicture* pic, SkString name)
9 : CpuTask(r, tr), fPicture(SkRef(pic)), fName(name) {}
10
11 void SKPTask::draw() {
12 SkBitmap bitmap;
13 SetupBitmap(kN32_SkColorType, *fPicture, &bitmap);
14 DrawPicture(fPicture, &bitmap);
15
16 this->spawnChild(SkNEW_ARGS(RecordTask, (*this, fPicture, bitmap, false)));
17 this->spawnChild(SkNEW_ARGS(RecordTask, (*this, fPicture, bitmap, true)));
18 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap, true)));
19 }
20
21 } // namespace DM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698