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

Side by Side Diff: dm/DMPDFTask.h

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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
« no previous file with comments | « dm/DMPDFRasterizeTask.h ('k') | dm/DMPipeTask.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef DMPDFTask_DEFINED 1 #ifndef DMPDFTask_DEFINED
2 #define DMPDFTask_DEFINED 2 #define DMPDFTask_DEFINED
3 3
4 #include "DMPDFRasterizeTask.h" 4 #include "DMPDFRasterizeTask.h"
5 #include "DMTask.h" 5 #include "DMTask.h"
6 #include "SkBitmap.h" 6 #include "SkBitmap.h"
7 #include "SkPicture.h" 7 #include "SkPicture.h"
8 #include "SkString.h" 8 #include "SkString.h"
9 #include "SkTemplates.h" 9 #include "SkTemplates.h"
10 #include "gm.h" 10 #include "gm.h"
11 11
12 namespace DM { 12 namespace DM {
13 13
14 // This task renders a GM or SKP using Skia's PDF backend. 14 // This task renders a GM or SKP using Skia's PDF backend.
15 // If rasterizePdfProc is non-NULL, it will spawn a PDFRasterizeTask. 15 // If rasterizePdfProc is non-NULL, it will spawn a PDFRasterizeTask.
16 class PDFTask : public CpuTask { 16 class PDFTask : public CpuTask {
17 public: 17 public:
18 PDFTask(const char*, 18 PDFTask(const char*,
19 Reporter*, 19 Reporter*,
20 TaskRunner*, 20 TaskRunner*,
21 skiagm::GMRegistry::Factory, 21 skiagm::GMRegistry::Factory,
22 RasterizePdfProc); 22 RasterizePdfProc);
23 23
24 PDFTask(Reporter*, 24 PDFTask(Reporter*,
25 TaskRunner*, 25 TaskRunner*,
26 const SkPicture*, 26 const SkPicture*,
27 SkString name, 27 SkString name,
28 RasterizePdfProc); 28 RasterizePdfProc);
29 29
30 virtual void draw() SK_OVERRIDE; 30 void draw() SK_OVERRIDE;
31 31
32 virtual bool shouldSkip() const SK_OVERRIDE; 32 bool shouldSkip() const SK_OVERRIDE;
33 33
34 virtual SkString name() const SK_OVERRIDE { return fName; } 34 SkString name() const SK_OVERRIDE { return fName; }
35 35
36 private: 36 private:
37 // One of these two will be set. 37 // One of these two will be set.
38 SkAutoTDelete<skiagm::GM> fGM; 38 SkAutoTDelete<skiagm::GM> fGM;
39 SkAutoTUnref<const SkPicture> fPicture; 39 SkAutoTUnref<const SkPicture> fPicture;
40 40
41 const SkString fName; 41 const SkString fName;
42 RasterizePdfProc fRasterize; 42 RasterizePdfProc fRasterize;
43 }; 43 };
44 44
45 } // namespace DM 45 } // namespace DM
46 46
47 #endif // DMPDFTask_DEFINED 47 #endif // DMPDFTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMPDFRasterizeTask.h ('k') | dm/DMPipeTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698