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

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

Issue 1211123004: Revert of Return GrGLContext from GrTestTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.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 2013 Google Inc. 2 * Copyright 2013 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 8
9 #ifndef GrGLContext_DEFINED 9 #ifndef GrGLContext_DEFINED
10 #define GrGLContext_DEFINED 10 #define GrGLContext_DEFINED
11 11
12 #include "gl/GrGLExtensions.h" 12 #include "gl/GrGLExtensions.h"
13 #include "gl/GrGLInterface.h" 13 #include "gl/GrGLInterface.h"
14 #include "GrGLCaps.h" 14 #include "GrGLCaps.h"
15 #include "GrGLUtil.h" 15 #include "GrGLUtil.h"
16 16
17 struct GrContextOptions; 17 struct GrContextOptions;
18 18
19 /** 19 /**
20 * Encapsulates information about an OpenGL context including the OpenGL 20 * Encapsulates information about an OpenGL context including the OpenGL
21 * version, the GrGLStandard type of the context, and GLSL version. 21 * version, the GrGLStandard type of the context, and GLSL version.
22 */ 22 */
23 class GrGLContextInfo : public SkRefCnt { 23 class GrGLContextInfo : public SkNoncopyable {
24 public: 24 public:
25 GrGLStandard standard() const { return fInterface->fStandard; } 25 GrGLStandard standard() const { return fInterface->fStandard; }
26 GrGLVersion version() const { return fGLVersion; } 26 GrGLVersion version() const { return fGLVersion; }
27 GrGLSLGeneration glslGeneration() const { return fGLSLGeneration; } 27 GrGLSLGeneration glslGeneration() const { return fGLSLGeneration; }
28 GrGLVendor vendor() const { return fVendor; } 28 GrGLVendor vendor() const { return fVendor; }
29 GrGLRenderer renderer() const { return fRenderer; } 29 GrGLRenderer renderer() const { return fRenderer; }
30 /** What driver is running our GL implementation? This is not necessarily re lated to the vendor. 30 /** What driver is running our GL implementation? This is not necessarily re lated to the vendor.
31 (e.g. Intel GPU being driven by Mesa) */ 31 (e.g. Intel GPU being driven by Mesa) */
32 GrGLDriver driver() const { return fDriver; } 32 GrGLDriver driver() const { return fDriver; }
33 GrGLDriverVersion driverVersion() const { return fDriverVersion; } 33 GrGLDriverVersion driverVersion() const { return fDriverVersion; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 const GrGLInterface* interface() const { return fInterface; } 77 const GrGLInterface* interface() const { return fInterface; }
78 78
79 private: 79 private:
80 GrGLContext(const ConstructorArgs& args) : INHERITED(args) {} 80 GrGLContext(const ConstructorArgs& args) : INHERITED(args) {}
81 81
82 typedef GrGLContextInfo INHERITED; 82 typedef GrGLContextInfo INHERITED;
83 }; 83 };
84 84
85 #endif 85 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698