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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 259 |
260 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 260 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
261 int enclave() const override { return fSink->enclave(); } | 261 int enclave() const override { return fSink->enclave(); } |
262 const char* fileExtension() const override { return fSink->fileExtension();
} | 262 const char* fileExtension() const override { return fSink->fileExtension();
} |
263 private: | 263 private: |
264 const int fW, fH; | 264 const int fW, fH; |
265 SkAutoTDelete<SkBBHFactory> fFactory; | 265 SkAutoTDelete<SkBBHFactory> fFactory; |
266 SkAutoTDelete<Sink> fSink; | 266 SkAutoTDelete<Sink> fSink; |
267 }; | 267 }; |
268 | 268 |
| 269 class ViaSecondPicture : public Sink { |
| 270 public: |
| 271 explicit ViaSecondPicture(Sink*); |
| 272 |
| 273 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 274 int enclave() const override { return fSink->enclave(); } |
| 275 const char* fileExtension() const override { return fSink->fileExtension();
} |
| 276 private: |
| 277 SkAutoTDelete<Sink> fSink; |
| 278 }; |
| 279 |
269 } // namespace DM | 280 } // namespace DM |
270 | 281 |
271 #endif//DMSrcSink_DEFINED | 282 #endif//DMSrcSink_DEFINED |
OLD | NEW |