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