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 1548683002: Revert of Add config options to run different GPU APIs to dm and nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@commandbuffer-as-api-03-context-factory-glcontext-type
Patch Set: Created 4 years, 12 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override; 208 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override;
209 int enclave() const override { return kAnyThread_Enclave; } 209 int enclave() const override { return kAnyThread_Enclave; }
210 const char* fileExtension() const override { return ""; } 210 const char* fileExtension() const override { return ""; }
211 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kNull, SinkF lags::kDirect }; } 211 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kNull, SinkF lags::kDirect }; }
212 }; 212 };
213 213
214 214
215 class GPUSink : public Sink { 215 class GPUSink : public Sink {
216 public: 216 public:
217 GPUSink(GrContextFactory::GLContextType, GrContextFactory::GLContextOptions, 217 GPUSink(GrContextFactory::GLContextType, GrContextFactory::GLContextOptions,
218 int samples, bool diText, bool threaded); 218 GrGLStandard, int samples, bool diText, bool threaded);
219 219
220 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 220 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
221 int enclave() const override; 221 int enclave() const override;
222 const char* fileExtension() const override { return "png"; } 222 const char* fileExtension() const override { return "png"; }
223 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kGPU, SinkFl ags::kDirect }; } 223 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kGPU, SinkFl ags::kDirect }; }
224 private: 224 private:
225 GrContextFactory::GLContextType fContextType; 225 GrContextFactory::GLContextType fContextType;
226 GrContextFactory::GLContextOptions fContextOptions; 226 GrContextFactory::GLContextOptions fContextOptions;
227 GrGLStandard fGpuAPI;
227 int fSampleCount; 228 int fSampleCount;
228 bool fUseDIText; 229 bool fUseDIText;
229 bool fThreaded; 230 bool fThreaded;
230 }; 231 };
231 232
232 class PDFSink : public Sink { 233 class PDFSink : public Sink {
233 public: 234 public:
234 PDFSink(const char* rasterizer); 235 PDFSink(const char* rasterizer);
235 236
236 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 237 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 360
360 class ViaTwice : public Via { 361 class ViaTwice : public Via {
361 public: 362 public:
362 explicit ViaTwice(Sink* sink) : Via(sink) {} 363 explicit ViaTwice(Sink* sink) : Via(sink) {}
363 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 364 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
364 }; 365 };
365 366
366 } // namespace DM 367 } // namespace DM
367 368
368 #endif//DMSrcSink_DEFINED 369 #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