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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 sk_gpu_test::GrContextFactory::GLContextOptions fContextOptions; | 246 sk_gpu_test::GrContextFactory::GLContextOptions fContextOptions; |
247 int fSampleCount; | 247 int fSampleCount; |
248 bool fUseDIText; | 248 bool fUseDIText; |
249 SkColorType fColorType; | 249 SkColorType fColorType; |
250 SkColorProfileType fProfileType; | 250 SkColorProfileType fProfileType; |
251 bool fThreaded; | 251 bool fThreaded; |
252 }; | 252 }; |
253 | 253 |
254 class PDFSink : public Sink { | 254 class PDFSink : public Sink { |
255 public: | 255 public: |
256 PDFSink(const char* rasterizer); | |
257 | |
258 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 256 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
259 const char* fileExtension() const override { return "pdf"; } | 257 const char* fileExtension() const override { return "pdf"; } |
260 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin
kFlags::kDirect }; } | 258 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin
kFlags::kDirect }; } |
261 private: | |
262 const char* fRasterizer; | |
263 }; | 259 }; |
264 | 260 |
265 class XPSSink : public Sink { | 261 class XPSSink : public Sink { |
266 public: | 262 public: |
267 XPSSink(); | 263 XPSSink(); |
268 | 264 |
269 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 265 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
270 const char* fileExtension() const override { return "xps"; } | 266 const char* fileExtension() const override { return "xps"; } |
271 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin
kFlags::kDirect }; } | 267 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin
kFlags::kDirect }; } |
272 }; | 268 }; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 371 |
376 class ViaMojo : public Via { | 372 class ViaMojo : public Via { |
377 public: | 373 public: |
378 explicit ViaMojo(Sink* sink) : Via(sink) {} | 374 explicit ViaMojo(Sink* sink) : Via(sink) {} |
379 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 375 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
380 }; | 376 }; |
381 | 377 |
382 } // namespace DM | 378 } // namespace DM |
383 | 379 |
384 #endif//DMSrcSink_DEFINED | 380 #endif//DMSrcSink_DEFINED |
OLD | NEW |