OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "DMPDFRasterizeTask.h" | 8 #include "DMPDFRasterizeTask.h" |
9 #include "DMExpectationsTask.h" | |
10 #include "DMUtil.h" | 9 #include "DMUtil.h" |
11 #include "DMWriteTask.h" | 10 #include "DMWriteTask.h" |
12 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
13 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
14 #include "SkStream.h" | 13 #include "SkStream.h" |
15 | 14 |
16 namespace DM { | 15 namespace DM { |
17 | 16 |
18 PDFRasterizeTask::PDFRasterizeTask(const Task& parent, | 17 PDFRasterizeTask::PDFRasterizeTask(const Task& parent, |
19 SkStreamAsset* pdf, | 18 SkStreamAsset* pdf, |
(...skipping 10 matching lines...) Expand all Loading... |
30 SkBitmap bitmap; | 29 SkBitmap bitmap; |
31 | 30 |
32 if (fRasterize(fPdf.get(), &bitmap)) { | 31 if (fRasterize(fPdf.get(), &bitmap)) { |
33 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); | 32 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); |
34 } else { | 33 } else { |
35 this->fail(); | 34 this->fail(); |
36 } | 35 } |
37 } | 36 } |
38 | 37 |
39 } // namespace DM | 38 } // namespace DM |
OLD | NEW |