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

Side by Side Diff: dm/DMPDFTask.h

Issue 312873002: DM: add pdf (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: put cutils back Created 6 years, 6 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 #ifndef DMPDFTask_DEFINED
2 #define DMPDFTask_DEFINED
3
4 #include "DMPDFRasterizeTask.h"
5 #include "DMExpectations.h"
6 #include "DMTask.h"
7 #include "SkBitmap.h"
8 #include "SkString.h"
9 #include "SkTemplates.h"
10 #include "gm.h"
11
12 namespace DM {
13
14 // This task renders a GM using Skia's PDF backend.
15 // If rasterizePdfProc is non-NULL, it will spawn a PDFRasterizeTask.
16 class PDFTask : public CpuTask {
17 public:
18 PDFTask(const char* suffix,
19 Reporter*,
20 TaskRunner*,
21 const Expectations&,
22 skiagm::GMRegistry::Factory,
23 RasterizePdfProc);
24
25 virtual void draw() SK_OVERRIDE;
26
27 virtual bool shouldSkip() const SK_OVERRIDE;
28
29 virtual SkString name() const SK_OVERRIDE { return fName; }
30
31 private:
32 SkAutoTDelete<skiagm::GM> fGM;
33 const SkString fName;
34 const Expectations& fExpectations;
35 RasterizePdfProc fRasterize;
36 };
37
38 } // namespace DM
39
40 #endif // DMPDFTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMPDFRasterizeTask.cpp ('k') | dm/DMPDFTask.cpp » ('j') | dm/DMPDFTask.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698