| 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" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 ViaMatrix(SkMatrix, Sink*); | 156 ViaMatrix(SkMatrix, Sink*); |
| 157 | 157 |
| 158 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE; | 158 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE; |
| 159 int enclave() const SK_OVERRIDE { return fSink->enclave(); } | 159 int enclave() const SK_OVERRIDE { return fSink->enclave(); } |
| 160 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } | 160 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } |
| 161 private: | 161 private: |
| 162 SkMatrix fMatrix; | 162 SkMatrix fMatrix; |
| 163 SkAutoTDelete<Sink> fSink; | 163 SkAutoTDelete<Sink> fSink; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 class ViaUpright : public Sink { |
| 167 public: |
| 168 ViaUpright(SkMatrix, Sink*); |
| 169 |
| 170 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE; |
| 171 int enclave() const SK_OVERRIDE { return fSink->enclave(); } |
| 172 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } |
| 173 private: |
| 174 SkMatrix fMatrix; |
| 175 SkAutoTDelete<Sink> fSink; |
| 176 }; |
| 177 |
| 166 class ViaPipe : public Sink { | 178 class ViaPipe : public Sink { |
| 167 public: | 179 public: |
| 168 explicit ViaPipe(Sink*); | 180 explicit ViaPipe(Sink*); |
| 169 | 181 |
| 170 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE; | 182 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE; |
| 171 int enclave() const SK_OVERRIDE { return fSink->enclave(); } | 183 int enclave() const SK_OVERRIDE { return fSink->enclave(); } |
| 172 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } | 184 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } |
| 173 private: | 185 private: |
| 174 SkAutoTDelete<Sink> fSink; | 186 SkAutoTDelete<Sink> fSink; |
| 175 }; | 187 }; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 194 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } | 206 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
); } |
| 195 private: | 207 private: |
| 196 const int fW, fH; | 208 const int fW, fH; |
| 197 SkAutoTDelete<SkBBHFactory> fFactory; | 209 SkAutoTDelete<SkBBHFactory> fFactory; |
| 198 SkAutoTDelete<Sink> fSink; | 210 SkAutoTDelete<Sink> fSink; |
| 199 }; | 211 }; |
| 200 | 212 |
| 201 } // namespace DM | 213 } // namespace DM |
| 202 | 214 |
| 203 #endif//DMSrcSink_DEFINED | 215 #endif//DMSrcSink_DEFINED |
| OLD | NEW |