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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 public: | 241 public: |
242 explicit SKPSrc(Path path); | 242 explicit SKPSrc(Path path); |
243 | 243 |
244 Error draw(SkCanvas*) const override; | 244 Error draw(SkCanvas*) const override; |
245 SkISize size() const override; | 245 SkISize size() const override; |
246 Name name() const override; | 246 Name name() const override; |
247 private: | 247 private: |
248 Path fPath; | 248 Path fPath; |
249 }; | 249 }; |
250 | 250 |
| 251 #if defined(SK_XML) |
| 252 class SVGSrc : public Src { |
| 253 public: |
| 254 explicit SVGSrc(Path path); |
| 255 |
| 256 Error draw(SkCanvas*) const override; |
| 257 SkISize size() const override; |
| 258 Name name() const override; |
| 259 |
| 260 private: |
| 261 Path fPath; |
| 262 |
| 263 typedef Src INHERITED; |
| 264 }; |
| 265 #endif // SK_XML |
251 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 266 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
252 | 267 |
253 class MSKPSrc : public Src { | 268 class MSKPSrc : public Src { |
254 public: | 269 public: |
255 explicit MSKPSrc(Path path); | 270 explicit MSKPSrc(Path path); |
256 | 271 |
257 int pageCount() const override; | 272 int pageCount() const override; |
258 Error draw(SkCanvas* c) const override; | 273 Error draw(SkCanvas* c) const override; |
259 Error draw(int, SkCanvas*) const override; | 274 Error draw(int, SkCanvas*) const override; |
260 SkISize size() const override; | 275 SkISize size() const override; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 442 |
428 class ViaMojo : public Via { | 443 class ViaMojo : public Via { |
429 public: | 444 public: |
430 explicit ViaMojo(Sink* sink) : Via(sink) {} | 445 explicit ViaMojo(Sink* sink) : Via(sink) {} |
431 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 446 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
432 }; | 447 }; |
433 | 448 |
434 } // namespace DM | 449 } // namespace DM |
435 | 450 |
436 #endif//DMSrcSink_DEFINED | 451 #endif//DMSrcSink_DEFINED |
OLD | NEW |