OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 DMSrcSink_DEFINED | 8 #ifndef DMSrcSink_DEFINED |
9 #define DMSrcSink_DEFINED | 9 #define DMSrcSink_DEFINED |
10 | 10 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 public: | 288 public: |
289 explicit ViaSecondPicture(Sink*); | 289 explicit ViaSecondPicture(Sink*); |
290 | 290 |
291 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 291 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
292 int enclave() const override { return fSink->enclave(); } | 292 int enclave() const override { return fSink->enclave(); } |
293 const char* fileExtension() const override { return fSink->fileExtension();
} | 293 const char* fileExtension() const override { return fSink->fileExtension();
} |
294 private: | 294 private: |
295 SkAutoTDelete<Sink> fSink; | 295 SkAutoTDelete<Sink> fSink; |
296 }; | 296 }; |
297 | 297 |
| 298 class ViaSingletonPictures : public Sink { |
| 299 public: |
| 300 explicit ViaSingletonPictures(Sink*); |
| 301 |
| 302 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 303 int enclave() const override { return fSink->enclave(); } |
| 304 const char* fileExtension() const override { return fSink->fileExtension();
} |
| 305 private: |
| 306 SkAutoTDelete<Sink> fSink; |
| 307 }; |
| 308 |
298 } // namespace DM | 309 } // namespace DM |
299 | 310 |
300 #endif//DMSrcSink_DEFINED | 311 #endif//DMSrcSink_DEFINED |
OLD | NEW |