OLD | NEW |
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 GrGLInterface_DEFINED | 8 #ifndef GrGLInterface_DEFINED |
9 #define GrGLInterface_DEFINED | 9 #define GrGLInterface_DEFINED |
10 | 10 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 GLPtr<GrGLMapBufferProc> fMapBuffer; | 239 GLPtr<GrGLMapBufferProc> fMapBuffer; |
240 GLPtr<GrGLMapBufferRangeProc> fMapBufferRange; | 240 GLPtr<GrGLMapBufferRangeProc> fMapBufferRange; |
241 GLPtr<GrGLMapBufferSubDataProc> fMapBufferSubData; | 241 GLPtr<GrGLMapBufferSubDataProc> fMapBufferSubData; |
242 GLPtr<GrGLMapTexSubImage2DProc> fMapTexSubImage2D; | 242 GLPtr<GrGLMapTexSubImage2DProc> fMapTexSubImage2D; |
243 GLPtr<GrGLMatrixLoadfProc> fMatrixLoadf; | 243 GLPtr<GrGLMatrixLoadfProc> fMatrixLoadf; |
244 GLPtr<GrGLMatrixLoadIdentityProc> fMatrixLoadIdentity; | 244 GLPtr<GrGLMatrixLoadIdentityProc> fMatrixLoadIdentity; |
245 GLPtr<GrGLPixelStoreiProc> fPixelStorei; | 245 GLPtr<GrGLPixelStoreiProc> fPixelStorei; |
246 GLPtr<GrGLPopGroupMarkerProc> fPopGroupMarker; | 246 GLPtr<GrGLPopGroupMarkerProc> fPopGroupMarker; |
247 GLPtr<GrGLPushGroupMarkerProc> fPushGroupMarker; | 247 GLPtr<GrGLPushGroupMarkerProc> fPushGroupMarker; |
248 GLPtr<GrGLQueryCounterProc> fQueryCounter; | 248 GLPtr<GrGLQueryCounterProc> fQueryCounter; |
| 249 GLPtr<GrGLRasterSamplesProc> fRasterSamples; |
249 GLPtr<GrGLReadBufferProc> fReadBuffer; | 250 GLPtr<GrGLReadBufferProc> fReadBuffer; |
250 GLPtr<GrGLReadPixelsProc> fReadPixels; | 251 GLPtr<GrGLReadPixelsProc> fReadPixels; |
251 GLPtr<GrGLRenderbufferStorageProc> fRenderbufferStorage; | 252 GLPtr<GrGLRenderbufferStorageProc> fRenderbufferStorage; |
252 | 253 |
253 // On OpenGL ES there are multiple incompatible extensions that add sup
port for MSAA | 254 // On OpenGL ES there are multiple incompatible extensions that add sup
port for MSAA |
254 // and ES3 adds MSAA support to the standard. On an ES3 driver we may s
till use the | 255 // and ES3 adds MSAA support to the standard. On an ES3 driver we may s
till use the |
255 // older extensions for performance reasons or due to ES3 driver bugs.
We want the function | 256 // older extensions for performance reasons or due to ES3 driver bugs.
We want the function |
256 // that creates the GrGLInterface to provide all available functions an
d internally | 257 // that creates the GrGLInterface to provide all available functions an
d internally |
257 // we will select among them. They all have a method called glRenderbuf
ferStorageMultisample*. | 258 // we will select among them. They all have a method called glRenderbuf
ferStorageMultisample*. |
258 // So we have separate function pointers for GL_IMG/EXT_multisampled_to
_texture, | 259 // So we have separate function pointers for GL_IMG/EXT_multisampled_to
_texture, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 #if GR_GL_PER_GL_FUNC_CALLBACK | 360 #if GR_GL_PER_GL_FUNC_CALLBACK |
360 GrGLInterfaceCallbackProc fCallback; | 361 GrGLInterfaceCallbackProc fCallback; |
361 GrGLInterfaceCallbackData fCallbackData; | 362 GrGLInterfaceCallbackData fCallbackData; |
362 #endif | 363 #endif |
363 | 364 |
364 // This exists for internal testing. | 365 // This exists for internal testing. |
365 virtual void abandon() const {} | 366 virtual void abandon() const {} |
366 }; | 367 }; |
367 | 368 |
368 #endif | 369 #endif |
OLD | NEW |