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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 Name name() const override; | 95 Name name() const override; |
96 void modifyGrContextOptions(GrContextOptions* options) const override; | 96 void modifyGrContextOptions(GrContextOptions* options) const override; |
97 | 97 |
98 private: | 98 private: |
99 skiagm::GMRegistry::Factory fFactory; | 99 skiagm::GMRegistry::Factory fFactory; |
100 }; | 100 }; |
101 | 101 |
102 class CodecSrc : public Src { | 102 class CodecSrc : public Src { |
103 public: | 103 public: |
104 enum Mode { | 104 enum Mode { |
105 kNormal_Mode, | 105 kScaledCodec_Mode, |
| 106 kCodec_Mode, |
106 kScanline_Mode, | 107 kScanline_Mode, |
107 kScanline_Subset_Mode, | 108 kScanline_Subset_Mode, |
108 kStripe_Mode, // Tests the skipping of scanlines | 109 kStripe_Mode, // Tests the skipping of scanlines |
109 kSubset_Mode, // For codecs that support subsets directly. | 110 kSubset_Mode, // For codecs that support subsets directly. |
110 }; | 111 }; |
111 enum DstColorType { | 112 enum DstColorType { |
112 kGetFromCanvas_DstColorType, | 113 kGetFromCanvas_DstColorType, |
113 kIndex8_Always_DstColorType, | 114 kIndex8_Always_DstColorType, |
114 kGrayscale_Always_DstColorType, | 115 kGrayscale_Always_DstColorType, |
115 }; | 116 }; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 309 |
309 class ViaTwice : public Via { | 310 class ViaTwice : public Via { |
310 public: | 311 public: |
311 explicit ViaTwice(Sink* sink) : Via(sink) {} | 312 explicit ViaTwice(Sink* sink) : Via(sink) {} |
312 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 313 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
313 }; | 314 }; |
314 | 315 |
315 } // namespace DM | 316 } // namespace DM |
316 | 317 |
317 #endif//DMSrcSink_DEFINED | 318 #endif//DMSrcSink_DEFINED |
OLD | NEW |