Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: dm/DMSrcSink.h

Issue 1916093002: SkDocument/PDF: new API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-26 (Tuesday) 15:55:33 EDT Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698