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

Side by Side Diff: dm/DMSrcSink.h

Issue 1322433006: Rename flag from "distance field" to "device independent." (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add legacy alias for chrome Created 5 years, 3 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/DMGpuSupport.h ('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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override; 162 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override;
163 int enclave() const override { return kAnyThread_Enclave; } 163 int enclave() const override { return kAnyThread_Enclave; }
164 const char* fileExtension() const override { return ""; } 164 const char* fileExtension() const override { return ""; }
165 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kNull, SinkF lags::kDirect }; } 165 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kNull, SinkF lags::kDirect }; }
166 }; 166 };
167 167
168 168
169 class GPUSink : public Sink { 169 class GPUSink : public Sink {
170 public: 170 public:
171 GPUSink(GrContextFactory::GLContextType, GrGLStandard, int samples, bool dfT ext, bool threaded); 171 GPUSink(GrContextFactory::GLContextType, GrGLStandard, int samples, bool diT ext, bool threaded);
172 172
173 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 173 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
174 int enclave() const override; 174 int enclave() const override;
175 const char* fileExtension() const override { return "png"; } 175 const char* fileExtension() const override { return "png"; }
176 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kGPU, SinkFl ags::kDirect }; } 176 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kGPU, SinkFl ags::kDirect }; }
177 private: 177 private:
178 GrContextFactory::GLContextType fContextType; 178 GrContextFactory::GLContextType fContextType;
179 GrGLStandard fGpuAPI; 179 GrGLStandard fGpuAPI;
180 int fSampleCount; 180 int fSampleCount;
181 bool fUseDFText; 181 bool fUseDIText;
182 bool fThreaded; 182 bool fThreaded;
183 }; 183 };
184 184
185 class PDFSink : public Sink { 185 class PDFSink : public Sink {
186 public: 186 public:
187 PDFSink(); 187 PDFSink();
188 188
189 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 189 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
190 int enclave() const override { return kAnyThread_Enclave; } 190 int enclave() const override { return kAnyThread_Enclave; }
191 const char* fileExtension() const override { return "pdf"; } 191 const char* fileExtension() const override { return "pdf"; }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 class ViaTwice : public Via { 309 class ViaTwice : public Via {
310 public: 310 public:
311 explicit ViaTwice(Sink* sink) : Via(sink) {} 311 explicit ViaTwice(Sink* sink) : Via(sink) {}
312 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 312 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
313 }; 313 };
314 314
315 } // namespace DM 315 } // namespace DM
316 316
317 #endif//DMSrcSink_DEFINED 317 #endif//DMSrcSink_DEFINED
OLDNEW
« no previous file with comments | « dm/DMGpuSupport.h ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698