OLD | NEW |
(Empty) | |
| 1 #ifndef DMWriteTask_DEFINED |
| 2 #define DMWriteTask_DEFINED |
| 3 |
| 4 #include "DMTask.h" |
| 5 #include "SkBitmap.h" |
| 6 #include "SkString.h" |
| 7 |
| 8 // Writes a bitmap to a file. |
| 9 |
| 10 namespace DM { |
| 11 |
| 12 class WriteTask : public Task { |
| 13 |
| 14 public: |
| 15 WriteTask(const Task& parent, SkBitmap bitmap); |
| 16 |
| 17 virtual void draw() SK_OVERRIDE; |
| 18 virtual bool usesGpu() const SK_OVERRIDE { return false; } |
| 19 virtual bool shouldSkip() const SK_OVERRIDE; |
| 20 virtual SkString name() const SK_OVERRIDE; |
| 21 |
| 22 private: |
| 23 SkString fConfig; |
| 24 SkString fGmName; |
| 25 const SkBitmap fBitmap; |
| 26 }; |
| 27 |
| 28 } // namespace DM |
| 29 |
| 30 #endif // DMWriteTask_DEFINED |
OLD | NEW |