OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 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 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { | 9 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { |
10 GET_PROC_LOCAL(GetString); | 10 GET_PROC_LOCAL(GetString); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 GET_LINKED(InvalidateSubFramebuffer); | 226 GET_LINKED(InvalidateSubFramebuffer); |
227 #else | 227 #else |
228 GET_PROC(InvalidateFramebuffer); | 228 GET_PROC(InvalidateFramebuffer); |
229 GET_PROC(InvalidateSubFramebuffer); | 229 GET_PROC(InvalidateSubFramebuffer); |
230 #endif | 230 #endif |
231 GET_PROC(InvalidateBufferData); | 231 GET_PROC(InvalidateBufferData); |
232 GET_PROC(InvalidateBufferSubData); | 232 GET_PROC(InvalidateBufferSubData); |
233 GET_PROC(InvalidateTexImage); | 233 GET_PROC(InvalidateTexImage); |
234 GET_PROC(InvalidateTexSubImage); | 234 GET_PROC(InvalidateTexSubImage); |
235 | 235 |
236 if (extensions.has("GL_EXT_direct_state_access")) { | |
237 GET_PROC_SUFFIX(MatrixLoadf, EXT); | |
238 GET_PROC_SUFFIX(MatrixLoadIdentity, EXT); | |
239 } | |
240 | |
241 #if USE_LINKED && GL_ES_VERSION_3_1 | |
242 GET_LINKED(GetProgramResourceLocation); | |
243 #else | |
244 if (version >= GR_GL_VER(3,1)) { | |
245 GET_PROC(GetProgramResourceLocation); | |
246 } | |
247 #endif | |
248 | |
249 if (extensions.has("GL_NV_path_rendering")) { | |
250 GET_PROC_SUFFIX(PathCommands, NV); | |
251 GET_PROC_SUFFIX(PathCoords, NV); | |
252 GET_PROC_SUFFIX(PathParameteri, NV); | |
253 GET_PROC_SUFFIX(PathParameterf, NV); | |
254 GET_PROC_SUFFIX(GenPaths, NV); | |
255 GET_PROC_SUFFIX(DeletePaths, NV); | |
256 GET_PROC_SUFFIX(PathStencilFunc, NV); | |
257 GET_PROC_SUFFIX(StencilFillPath, NV); | |
258 GET_PROC_SUFFIX(StencilStrokePath, NV); | |
259 GET_PROC_SUFFIX(StencilFillPathInstanced, NV); | |
260 GET_PROC_SUFFIX(StencilStrokePathInstanced, NV); | |
261 GET_PROC_SUFFIX(CoverFillPath, NV); | |
262 GET_PROC_SUFFIX(CoverStrokePath, NV); | |
263 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); | |
264 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); | |
265 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); | |
266 } | |
267 | |
268 interface->fStandard = kGLES_GrGLStandard; | 236 interface->fStandard = kGLES_GrGLStandard; |
269 interface->fExtensions.swap(&extensions); | 237 interface->fExtensions.swap(&extensions); |
270 | 238 |
271 return interface; | 239 return interface; |
272 } | 240 } |
OLD | NEW |