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

Side by Side Diff: dm/DMPDFTask.h

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

Powered by Google App Engine
This is Rietveld 408576698