| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |