OLD | NEW |
| (Empty) |
1 #ifndef DMImageTask_DEFINED | |
2 #define DMImageTask_DEFINED | |
3 | |
4 #include "DMReporter.h" | |
5 #include "DMTask.h" | |
6 #include "DMTaskRunner.h" | |
7 #include "SkData.h" | |
8 #include "SkString.h" | |
9 | |
10 // Decode an image into its natural bitmap, perhaps decoding random subsets. | |
11 | |
12 namespace DM { | |
13 | |
14 class ImageTask : public CpuTask { | |
15 public: | |
16 ImageTask(Reporter*, TaskRunner*, const SkData*, SkString name, int subsets
= 0); | |
17 | |
18 void draw() SK_OVERRIDE; | |
19 bool shouldSkip() const SK_OVERRIDE { return false; } | |
20 SkString name() const SK_OVERRIDE { return fName; } | |
21 | |
22 private: | |
23 SkAutoTUnref<const SkData> fEncoded; | |
24 const SkString fName; | |
25 int fSubsets; | |
26 }; | |
27 | |
28 } // namespace DM | |
29 | |
30 #endif // DMImageTask_DEFINED | |
OLD | NEW |