| 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 | 9 |
| 10 #include "GrGLAssembleInterface.h" | 10 #include "GrGLAssembleInterface.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 GET_PROC(GenTextures); | 151 GET_PROC(GenTextures); |
| 152 GET_PROC(GetUniformLocation); | 152 GET_PROC(GetUniformLocation); |
| 153 GET_PROC(LineWidth); | 153 GET_PROC(LineWidth); |
| 154 GET_PROC(LinkProgram); | 154 GET_PROC(LinkProgram); |
| 155 GET_PROC(MapBuffer); | 155 GET_PROC(MapBuffer); |
| 156 if (extensions.has("GL_EXT_direct_state_access")) { | 156 if (extensions.has("GL_EXT_direct_state_access")) { |
| 157 GET_PROC_SUFFIX(MatrixLoadf, EXT); | 157 GET_PROC_SUFFIX(MatrixLoadf, EXT); |
| 158 GET_PROC_SUFFIX(MatrixLoadIdentity, EXT); | 158 GET_PROC_SUFFIX(MatrixLoadIdentity, EXT); |
| 159 } | 159 } |
| 160 GET_PROC(PixelStorei); | 160 GET_PROC(PixelStorei); |
| 161 if (extensions.has("GL_EXT_raster_multisample")) { |
| 162 GET_PROC_SUFFIX(RasterSamples, EXT); |
| 163 } |
| 161 GET_PROC(ReadBuffer); | 164 GET_PROC(ReadBuffer); |
| 162 GET_PROC(ReadPixels); | 165 GET_PROC(ReadPixels); |
| 163 GET_PROC(Scissor); | 166 GET_PROC(Scissor); |
| 164 GET_PROC(ShaderSource); | 167 GET_PROC(ShaderSource); |
| 165 GET_PROC(StencilFunc); | 168 GET_PROC(StencilFunc); |
| 166 GET_PROC(StencilFuncSeparate); | 169 GET_PROC(StencilFuncSeparate); |
| 167 GET_PROC(StencilMask); | 170 GET_PROC(StencilMask); |
| 168 GET_PROC(StencilMaskSeparate); | 171 GET_PROC(StencilMaskSeparate); |
| 169 GET_PROC(StencilOp); | 172 GET_PROC(StencilOp); |
| 170 GET_PROC(StencilOpSeparate); | 173 GET_PROC(StencilOpSeparate); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 GET_PROC(GetProgramiv); | 407 GET_PROC(GetProgramiv); |
| 405 GET_PROC(GetShaderInfoLog); | 408 GET_PROC(GetShaderInfoLog); |
| 406 GET_PROC(GetShaderPrecisionFormat); | 409 GET_PROC(GetShaderPrecisionFormat); |
| 407 GET_PROC(GetShaderiv); | 410 GET_PROC(GetShaderiv); |
| 408 GET_PROC(GetString); | 411 GET_PROC(GetString); |
| 409 GET_PROC(GetStringi); | 412 GET_PROC(GetStringi); |
| 410 GET_PROC(GetUniformLocation); | 413 GET_PROC(GetUniformLocation); |
| 411 GET_PROC(LineWidth); | 414 GET_PROC(LineWidth); |
| 412 GET_PROC(LinkProgram); | 415 GET_PROC(LinkProgram); |
| 413 GET_PROC(PixelStorei); | 416 GET_PROC(PixelStorei); |
| 417 |
| 418 if (extensions.has("GL_EXT_raster_multisample")) { |
| 419 GET_PROC_SUFFIX(RasterSamples, EXT); |
| 420 } |
| 421 |
| 414 GET_PROC(ReadPixels); | 422 GET_PROC(ReadPixels); |
| 415 GET_PROC(Scissor); | 423 GET_PROC(Scissor); |
| 416 GET_PROC(ShaderSource); | 424 GET_PROC(ShaderSource); |
| 417 GET_PROC(StencilFunc); | 425 GET_PROC(StencilFunc); |
| 418 GET_PROC(StencilFuncSeparate); | 426 GET_PROC(StencilFuncSeparate); |
| 419 GET_PROC(StencilMask); | 427 GET_PROC(StencilMask); |
| 420 GET_PROC(StencilMaskSeparate); | 428 GET_PROC(StencilMaskSeparate); |
| 421 GET_PROC(StencilOp); | 429 GET_PROC(StencilOp); |
| 422 GET_PROC(StencilOpSeparate); | 430 GET_PROC(StencilOpSeparate); |
| 423 GET_PROC(TexImage2D); | 431 GET_PROC(TexImage2D); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 564 |
| 557 if (extensions.has("GL_NV_framebuffer_mixed_samples")) { | 565 if (extensions.has("GL_NV_framebuffer_mixed_samples")) { |
| 558 GET_PROC_SUFFIX(CoverageModulation, NV); | 566 GET_PROC_SUFFIX(CoverageModulation, NV); |
| 559 } | 567 } |
| 560 | 568 |
| 561 interface->fStandard = kGLES_GrGLStandard; | 569 interface->fStandard = kGLES_GrGLStandard; |
| 562 interface->fExtensions.swap(&extensions); | 570 interface->fExtensions.swap(&extensions); |
| 563 | 571 |
| 564 return interface; | 572 return interface; |
| 565 } | 573 } |
| OLD | NEW |