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

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 1151603005: Revert of Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: 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, const GrContextOptions & options, 35 static GrGpu* Create(GrBackendContext backendContext, GrContext* context);
36 GrContext* context);
37 ~GrGLGpu() override; 36 ~GrGLGpu() override;
38 37
39 void contextAbandoned() override; 38 void contextAbandoned() override;
40 39
41 const GrGLContext& glContext() const { return *fGLContext; } 40 const GrGLContext& glContext() const { return *fGLContext; }
42 41
43 const GrGLInterface* glInterface() const { return fGLContext->interface(); } 42 const GrGLInterface* glInterface() const { return fGLContext->interface(); }
44 const GrGLContextInfo& ctxInfo() const { return *fGLContext; } 43 const GrGLContextInfo& ctxInfo() const { return *fGLContext; }
45 GrGLStandard glStandard() const { return fGLContext->standard(); } 44 GrGLStandard glStandard() const { return fGLContext->standard(); }
46 GrGLVersion glVersion() const { return fGLContext->version(); } 45 GrGLVersion glVersion() const { return fGLContext->version(); }
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 472
474 // we record what stencil format worked last time to hopefully exit early 473 // we record what stencil format worked last time to hopefully exit early
475 // from our loop that tries stencil formats and calls check fb status. 474 // from our loop that tries stencil formats and calls check fb status.
476 int fLastSuccessfulStencilFmtIdx; 475 int fLastSuccessfulStencilFmtIdx;
477 476
478 typedef GrGpu INHERITED; 477 typedef GrGpu INHERITED;
479 friend class GrGLPathRendering; // For accessing setTextureUnit. 478 friend class GrGLPathRendering; // For accessing setTextureUnit.
480 }; 479 };
481 480
482 #endif 481 #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