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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 kDst_HPZR30w_Mode, | 218 kDst_HPZR30w_Mode, |
219 | 219 |
220 kDst_sRGB_Mode, | 220 kDst_sRGB_Mode, |
221 | 221 |
222 #if defined(SK_TEST_QCMS) | 222 #if defined(SK_TEST_QCMS) |
223 // Use QCMS for color correction. | 223 // Use QCMS for color correction. |
224 kQCMS_HPZR30w_Mode, | 224 kQCMS_HPZR30w_Mode, |
225 #endif | 225 #endif |
226 }; | 226 }; |
227 | 227 |
228 ColorCodecSrc(Path, Mode); | 228 ColorCodecSrc(Path, Mode, SkColorType); |
229 | 229 |
230 Error draw(SkCanvas*) const override; | 230 Error draw(SkCanvas*) const override; |
231 SkISize size() const override; | 231 SkISize size() const override; |
232 Name name() const override; | 232 Name name() const override; |
233 bool veto(SinkFlags) const override; | 233 bool veto(SinkFlags) const override; |
234 private: | 234 private: |
235 Path fPath; | 235 Path fPath; |
236 Mode fMode; | 236 Mode fMode; |
| 237 SkColorType fColorType; |
237 }; | 238 }; |
238 | 239 |
239 class SKPSrc : public Src { | 240 class SKPSrc : public Src { |
240 public: | 241 public: |
241 explicit SKPSrc(Path path); | 242 explicit SKPSrc(Path path); |
242 | 243 |
243 Error draw(SkCanvas*) const override; | 244 Error draw(SkCanvas*) const override; |
244 SkISize size() const override; | 245 SkISize size() const override; |
245 Name name() const override; | 246 Name name() const override; |
246 private: | 247 private: |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 427 |
427 class ViaMojo : public Via { | 428 class ViaMojo : public Via { |
428 public: | 429 public: |
429 explicit ViaMojo(Sink* sink) : Via(sink) {} | 430 explicit ViaMojo(Sink* sink) : Via(sink) {} |
430 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 431 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
431 }; | 432 }; |
432 | 433 |
433 } // namespace DM | 434 } // namespace DM |
434 | 435 |
435 #endif//DMSrcSink_DEFINED | 436 #endif//DMSrcSink_DEFINED |
OLD | NEW |