| OLD | NEW |
| 1 #ifndef DMSrcSink_DEFINED | 1 #ifndef DMSrcSink_DEFINED |
| 2 #define DMSrcSink_DEFINED | 2 #define DMSrcSink_DEFINED |
| 3 | 3 |
| 4 #include "DMGpuSupport.h" | 4 #include "DMGpuSupport.h" |
| 5 #include "SkBBHFactory.h" | 5 #include "SkBBHFactory.h" |
| 6 #include "SkBBoxHierarchy.h" | 6 #include "SkBBoxHierarchy.h" |
| 7 #include "SkBitmap.h" | 7 #include "SkBitmap.h" |
| 8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
| 9 #include "SkData.h" | 9 #include "SkData.h" |
| 10 #include "SkGPipe.h" | 10 #include "SkGPipe.h" |
| 11 #include "SkPicture.h" | 11 #include "SkPicture.h" |
| 12 #include "SkStream.h" | |
| 13 #include "gm.h" | 12 #include "gm.h" |
| 14 | 13 |
| 15 namespace DM { | 14 namespace DM { |
| 16 | 15 |
| 17 // This is just convenience. It lets you use either return "foo" or return SkSt
ringPrintf(...). | 16 // This is just convenience. It lets you use either return "foo" or return SkSt
ringPrintf(...). |
| 18 struct ImplicitString : public SkString { | 17 struct ImplicitString : public SkString { |
| 19 template <typename T> | 18 template <typename T> |
| 20 ImplicitString(const T& s) : SkString(s) {} | 19 ImplicitString(const T& s) : SkString(s) {} |
| 21 }; | 20 }; |
| 22 typedef ImplicitString Error; | 21 typedef ImplicitString Error; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } | 163 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } |
| 165 private: | 164 private: |
| 166 const int fW, fH; | 165 const int fW, fH; |
| 167 SkAutoTDelete<SkBBHFactory> fFactory; | 166 SkAutoTDelete<SkBBHFactory> fFactory; |
| 168 SkAutoTDelete<Sink> fSink; | 167 SkAutoTDelete<Sink> fSink; |
| 169 }; | 168 }; |
| 170 | 169 |
| 171 } // namespace DM | 170 } // namespace DM |
| 172 | 171 |
| 173 #endif//DMSrcSink_DEFINED | 172 #endif//DMSrcSink_DEFINED |
| OLD | NEW |