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

Side by Side Diff: src/gpu/gl/GrGLGpu.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/gl/GrGLContext.cpp ('k') | src/gpu/gl/GrGLGpu.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 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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 class GrPipeline; 26 class GrPipeline;
27 class GrNonInstancedVertices; 27 class GrNonInstancedVertices;
28 28
29 #ifdef SK_DEVELOPER 29 #ifdef SK_DEVELOPER
30 #define PROGRAM_CACHE_STATS 30 #define PROGRAM_CACHE_STATS
31 #endif 31 #endif
32 32
33 class GrGLGpu : public GrGpu { 33 class GrGLGpu : public GrGpu {
34 public: 34 public:
35 static GrGpu* Create(GrBackendContext backendContext, GrContext* context); 35 static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions & options,
36 GrContext* context);
36 ~GrGLGpu() override; 37 ~GrGLGpu() override;
37 38
38 void contextAbandoned() override; 39 void contextAbandoned() override;
39 40
40 const GrGLContext& glContext() const { return *fGLContext; } 41 const GrGLContext& glContext() const { return *fGLContext; }
41 42
42 const GrGLInterface* glInterface() const { return fGLContext->interface(); } 43 const GrGLInterface* glInterface() const { return fGLContext->interface(); }
43 const GrGLContextInfo& ctxInfo() const { return *fGLContext; } 44 const GrGLContextInfo& ctxInfo() const { return *fGLContext; }
44 GrGLStandard glStandard() const { return fGLContext->standard(); } 45 GrGLStandard glStandard() const { return fGLContext->standard(); }
45 GrGLVersion glVersion() const { return fGLContext->version(); } 46 GrGLVersion glVersion() const { return fGLContext->version(); }
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 473
473 // we record what stencil format worked last time to hopefully exit early 474 // we record what stencil format worked last time to hopefully exit early
474 // from our loop that tries stencil formats and calls check fb status. 475 // from our loop that tries stencil formats and calls check fb status.
475 int fLastSuccessfulStencilFmtIdx; 476 int fLastSuccessfulStencilFmtIdx;
476 477
477 typedef GrGpu INHERITED; 478 typedef GrGpu INHERITED;
478 friend class GrGLPathRendering; // For accessing setTextureUnit. 479 friend class GrGLPathRendering; // For accessing setTextureUnit.
479 }; 480 };
480 481
481 #endif 482 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLContext.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698