2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #include "DMPDFRasterizeTask.h"
10 #include "DMWriteTask.h"
17 PDFRasterizeTask::PDFRasterizeTask(const Task& parent,
19 RasterizePdfProc proc)
21 , fName(UnderJoin(parent.name().c_str(), "rasterize"))
25 SkASSERT(fPdf->unique());
28 void PDFRasterizeTask::draw() {
31 if (fRasterize(fPdf.get(), &bitmap)) {
32 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, "PDF", bitmap)));