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

Side by Side Diff: dm/DMSrcSink.h

Issue 1376573002: DM: PDFSink sets rasterizer keyword (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 private: 206 private:
207 GrContextFactory::GLContextType fContextType; 207 GrContextFactory::GLContextType fContextType;
208 GrGLStandard fGpuAPI; 208 GrGLStandard fGpuAPI;
209 int fSampleCount; 209 int fSampleCount;
210 bool fUseDIText; 210 bool fUseDIText;
211 bool fThreaded; 211 bool fThreaded;
212 }; 212 };
213 213
214 class PDFSink : public Sink { 214 class PDFSink : public Sink {
215 public: 215 public:
216 PDFSink(); 216 PDFSink(const char* rasterizer);
217 217
218 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 218 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
219 int enclave() const override { return kAnyThread_Enclave; } 219 int enclave() const override { return kAnyThread_Enclave; }
220 const char* fileExtension() const override { return "pdf"; } 220 const char* fileExtension() const override { return "pdf"; }
221 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin kFlags::kDirect }; } 221 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin kFlags::kDirect }; }
222 private:
223 const char* fRasterizer;
222 }; 224 };
223 225
224 class XPSSink : public Sink { 226 class XPSSink : public Sink {
225 public: 227 public:
226 XPSSink(); 228 XPSSink();
227 229
228 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 230 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
229 int enclave() const override { return kAnyThread_Enclave; } 231 int enclave() const override { return kAnyThread_Enclave; }
230 const char* fileExtension() const override { return "xps"; } 232 const char* fileExtension() const override { return "xps"; }
231 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin kFlags::kDirect }; } 233 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, Sin kFlags::kDirect }; }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 339
338 class ViaTwice : public Via { 340 class ViaTwice : public Via {
339 public: 341 public:
340 explicit ViaTwice(Sink* sink) : Via(sink) {} 342 explicit ViaTwice(Sink* sink) : Via(sink) {}
341 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 343 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
342 }; 344 };
343 345
344 } // namespace DM 346 } // namespace DM
345 347
346 #endif//DMSrcSink_DEFINED 348 #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