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

Side by Side Diff: src/gpu/GrGpu.h

Issue 1158433006: Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: remove case statement accidentally checked in Created 5 years, 7 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 | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpuFactory.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 class GrStencilAttachment; 24 class GrStencilAttachment;
25 class GrVertices; 25 class GrVertices;
26 26
27 class GrGpu : public SkRefCnt { 27 class GrGpu : public SkRefCnt {
28 public: 28 public:
29 /** 29 /**
30 * Create an instance of GrGpu that matches the specified backend. If the re quested backend is 30 * Create an instance of GrGpu that matches the specified backend. If the re quested backend is
31 * not supported (at compile-time or run-time) this returns NULL. The contex t will not be 31 * not supported (at compile-time or run-time) this returns NULL. The contex t will not be
32 * fully constructed and should not be used by GrGpu until after this functi on returns. 32 * fully constructed and should not be used by GrGpu until after this functi on returns.
33 */ 33 */
34 static GrGpu* Create(GrBackend, GrBackendContext, GrContext* context); 34 static GrGpu* Create(GrBackend, GrBackendContext, const GrContextOptions&, G rContext* context);
35 35
36 //////////////////////////////////////////////////////////////////////////// 36 ////////////////////////////////////////////////////////////////////////////
37 37
38 GrGpu(GrContext* context); 38 GrGpu(GrContext* context);
39 ~GrGpu() override; 39 ~GrGpu() override;
40 40
41 GrContext* getContext() { return fContext; } 41 GrContext* getContext() { return fContext; }
42 const GrContext* getContext() const { return fContext; } 42 const GrContext* getContext() const { return fContext; }
43 43
44 /** 44 /**
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 int fGpuTrac eMarkerCount; 495 int fGpuTrac eMarkerCount;
496 GrTraceMarkerSet fActiveT raceMarkers; 496 GrTraceMarkerSet fActiveT raceMarkers;
497 GrTraceMarkerSet fStoredT raceMarkers; 497 GrTraceMarkerSet fStoredT raceMarkers;
498 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 498 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
499 GrContext* fContext ; 499 GrContext* fContext ;
500 500
501 typedef SkRefCnt INHERITED; 501 typedef SkRefCnt INHERITED;
502 }; 502 };
503 503
504 #endif 504 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpuFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698