| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 private: | 322 private: |
| 323 bool fCache; | 323 bool fCache; |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 class ViaSerialization : public Via { | 326 class ViaSerialization : public Via { |
| 327 public: | 327 public: |
| 328 explicit ViaSerialization(Sink* sink) : Via(sink) {} | 328 explicit ViaSerialization(Sink* sink) : Via(sink) {} |
| 329 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 329 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 class ViaPicture : public Via { |
| 333 public: |
| 334 explicit ViaPicture(Sink* sink) : Via(sink) {} |
| 335 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 336 }; |
| 337 |
| 332 class ViaTiles : public Via { | 338 class ViaTiles : public Via { |
| 333 public: | 339 public: |
| 334 ViaTiles(int w, int h, SkBBHFactory*, Sink*); | 340 ViaTiles(int w, int h, SkBBHFactory*, Sink*); |
| 335 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 341 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 336 private: | 342 private: |
| 337 const int fW, fH; | 343 const int fW, fH; |
| 338 SkAutoTDelete<SkBBHFactory> fFactory; | 344 SkAutoTDelete<SkBBHFactory> fFactory; |
| 339 }; | 345 }; |
| 340 | 346 |
| 341 class ViaSecondPicture : public Via { | 347 class ViaSecondPicture : public Via { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 352 | 358 |
| 353 class ViaTwice : public Via { | 359 class ViaTwice : public Via { |
| 354 public: | 360 public: |
| 355 explicit ViaTwice(Sink* sink) : Via(sink) {} | 361 explicit ViaTwice(Sink* sink) : Via(sink) {} |
| 356 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 362 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 357 }; | 363 }; |
| 358 | 364 |
| 359 } // namespace DM | 365 } // namespace DM |
| 360 | 366 |
| 361 #endif//DMSrcSink_DEFINED | 367 #endif//DMSrcSink_DEFINED |
| OLD | NEW |