OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrGLCaps_DEFINED | 9 #ifndef GrGLCaps_DEFINED |
10 #define GrGLCaps_DEFINED | 10 #define GrGLCaps_DEFINED |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 kMapBufferRange_MapBufferType, // glMapBufferRange() | 84 kMapBufferRange_MapBufferType, // glMapBufferRange() |
85 kChromium_MapBufferType, // GL_CHROMIUM_map_sub | 85 kChromium_MapBufferType, // GL_CHROMIUM_map_sub |
86 | 86 |
87 kLast_MapBufferType = kChromium_MapBufferType, | 87 kLast_MapBufferType = kChromium_MapBufferType, |
88 }; | 88 }; |
89 | 89 |
90 /** | 90 /** |
91 * Initializes the GrGLCaps to the set of features supported in the current | 91 * Initializes the GrGLCaps to the set of features supported in the current |
92 * OpenGL context accessible via ctxInfo. | 92 * OpenGL context accessible via ctxInfo. |
93 */ | 93 */ |
94 GrGLCaps(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterface); | 94 GrGLCaps(const GrContextOptions& contextOptions, const GrGLContextInfo& ctxI
nfo, |
| 95 const GrGLInterface* glInterface); |
95 | 96 |
96 /** | 97 /** |
97 * Call to note that a color config has been verified as a valid color | 98 * Call to note that a color config has been verified as a valid color |
98 * attachment. This may save future calls to glCheckFramebufferStatus | 99 * attachment. This may save future calls to glCheckFramebufferStatus |
99 * using isConfigVerifiedColorAttachment(). | 100 * using isConfigVerifiedColorAttachment(). |
100 */ | 101 */ |
101 void markConfigAsValidColorAttachment(GrPixelConfig config) { | 102 void markConfigAsValidColorAttachment(GrPixelConfig config) { |
102 fVerifiedColorConfigs.markVerified(config); | 103 fVerifiedColorConfigs.markVerified(config); |
103 } | 104 } |
104 | 105 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 const char* fFBFetchColorName; | 433 const char* fFBFetchColorName; |
433 const char* fFBFetchExtensionString; | 434 const char* fFBFetchExtensionString; |
434 | 435 |
435 AdvBlendEqInteraction fAdvBlendEqInteraction; | 436 AdvBlendEqInteraction fAdvBlendEqInteraction; |
436 | 437 |
437 typedef GrShaderCaps INHERITED; | 438 typedef GrShaderCaps INHERITED; |
438 }; | 439 }; |
439 | 440 |
440 | 441 |
441 #endif | 442 #endif |
OLD | NEW |