| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 Name name() const override; | 87 Name name() const override; |
| 88 private: | 88 private: |
| 89 skiagm::GMRegistry::Factory fFactory; | 89 skiagm::GMRegistry::Factory fFactory; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 class CodecSrc : public Src { | 92 class CodecSrc : public Src { |
| 93 public: | 93 public: |
| 94 enum Mode { | 94 enum Mode { |
| 95 kNormal_Mode, | 95 kNormal_Mode, |
| 96 kScanline_Mode, | 96 kScanline_Mode, |
| 97 kScanline_Subset_Mode, |
| 97 }; | 98 }; |
| 98 enum DstColorType { | 99 enum DstColorType { |
| 99 kGetFromCanvas_DstColorType, | 100 kGetFromCanvas_DstColorType, |
| 100 kIndex8_Always_DstColorType, | 101 kIndex8_Always_DstColorType, |
| 101 kGrayscale_Always_DstColorType, | 102 kGrayscale_Always_DstColorType, |
| 102 }; | 103 }; |
| 103 CodecSrc(Path, Mode, DstColorType); | 104 CodecSrc(Path, Mode, DstColorType); |
| 104 | 105 |
| 105 Error draw(SkCanvas*) const override; | 106 Error draw(SkCanvas*) const override; |
| 106 SkISize size() const override; | 107 SkISize size() const override; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 281 |
| 281 class ViaTwice : public Via { | 282 class ViaTwice : public Via { |
| 282 public: | 283 public: |
| 283 explicit ViaTwice(Sink* sink) : Via(sink) {} | 284 explicit ViaTwice(Sink* sink) : Via(sink) {} |
| 284 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 285 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 285 }; | 286 }; |
| 286 | 287 |
| 287 } // namespace DM | 288 } // namespace DM |
| 288 | 289 |
| 289 #endif//DMSrcSink_DEFINED | 290 #endif//DMSrcSink_DEFINED |
| OLD | NEW |