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

Side by Side Diff: dm/DMPDFRasterizeTask.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/DMGpuGMTask.h ('k') | dm/DMPDFTask.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 /* 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 #ifndef DMPDFRasterizeTask_DEFINED 8 #ifndef DMPDFRasterizeTask_DEFINED
9 #define DMPDFRasterizeTask_DEFINED 9 #define DMPDFRasterizeTask_DEFINED
10 10
11 #include "DMTask.h" 11 #include "DMTask.h"
12 #include "SkBitmap.h" 12 #include "SkBitmap.h"
13 #include "SkData.h" 13 #include "SkData.h"
14 #include "SkStream.h" 14 #include "SkStream.h"
15 #include "SkString.h" 15 #include "SkString.h"
16 #include "SkTemplates.h" 16 #include "SkTemplates.h"
17 17
18 namespace DM { 18 namespace DM {
19 19
20 typedef bool (*RasterizePdfProc)(SkStream* pdf, SkBitmap* output); 20 typedef bool (*RasterizePdfProc)(SkStream* pdf, SkBitmap* output);
21 21
22 class PDFRasterizeTask : public CpuTask { 22 class PDFRasterizeTask : public CpuTask {
23 public: 23 public:
24 // takes ownership of SkStreamAsset. 24 // takes ownership of SkStreamAsset.
25 PDFRasterizeTask(const Task& parent, 25 PDFRasterizeTask(const Task& parent,
26 SkStreamAsset* pdf, 26 SkStreamAsset* pdf,
27 RasterizePdfProc); 27 RasterizePdfProc);
28 28
29 virtual void draw() SK_OVERRIDE; 29 void draw() SK_OVERRIDE;
30 virtual bool shouldSkip() const SK_OVERRIDE { return NULL == fRasterize; } 30 bool shouldSkip() const SK_OVERRIDE { return NULL == fRasterize; }
31 virtual SkString name() const SK_OVERRIDE { return fName; } 31 SkString name() const SK_OVERRIDE { return fName; }
32 32
33 private: 33 private:
34 const SkString fName; 34 const SkString fName;
35 SkAutoTDelete<SkStreamAsset> fPdf; 35 SkAutoTDelete<SkStreamAsset> fPdf;
36 RasterizePdfProc fRasterize; 36 RasterizePdfProc fRasterize;
37 }; 37 };
38 38
39 } // namespace DM 39 } // namespace DM
40 40
41 #endif // DMPDFRasterizeTask_DEFINED 41 #endif // DMPDFRasterizeTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMGpuGMTask.h ('k') | dm/DMPDFTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698