Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "gl/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 functions->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampl eAPPLE; | 137 functions->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampl eAPPLE; |
| 138 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA PPLE; | 138 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA PPLE; |
| 139 #endif | 139 #endif |
| 140 | 140 |
| 141 #if GL_OES_vertex_array_object | 141 #if GL_OES_vertex_array_object |
| 142 functions->fBindVertexArray = glBindVertexArrayOES; | 142 functions->fBindVertexArray = glBindVertexArrayOES; |
| 143 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; | 143 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; |
| 144 functions->fGenVertexArrays = glGenVertexArraysOES; | 144 functions->fGenVertexArrays = glGenVertexArraysOES; |
| 145 #endif | 145 #endif |
| 146 | 146 |
| 147 if (extensions.has("GL_EXT_debug_marker")) { | |
| 148 functions->fInsertEventMarker = glInsertEventMarkerEXT; | |
|
bsalomon
2014/02/20 22:14:13
I think we either have to dynamically load the fun
| |
| 149 functions->fPushGroupMarker = glPushGroupMarkerEXT; | |
| 150 functions->fPopGroupMarker = glPopGropuMarkerEXT; | |
| 151 } | |
| 147 interface->fStandard = kGLES_GrGLStandard; | 152 interface->fStandard = kGLES_GrGLStandard; |
| 148 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte gerv); | 153 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte gerv); |
| 149 | 154 |
| 150 return interface; | 155 return interface; |
| 151 } | 156 } |
| OLD | NEW |