skia: GrGLAssembleGLInterface update load chromium extension functions

Command buffer will expose GL_CHROMIUM_framebuffer_multisample and
GL_CHROMIUM_map_sub, added support for these to enable interface
validation to succeed.

Review URL: https://codereview.chromium.org/1248853003
This commit is contained in:
hendrikw 2015-07-22 09:30:08 -07:00 committed by Commit bot
parent 551369163f
commit 1ae488f78b

View File

@ -617,11 +617,21 @@ const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) {
GET_PROC(FramebufferRenderbuffer);
GET_PROC(FramebufferTexture2D);
if (version >= GR_GL_VER(3,0)) {
if (extensions.has("GL_CHROMIUM_framebuffer_multisample")) {
GET_PROC_SUFFIX(RenderbufferStorageMultisample, CHROMIUM);
GET_PROC_SUFFIX(BlitFramebuffer, CHROMIUM);
} else if (version >= GR_GL_VER(3,0)) {
GET_PROC(RenderbufferStorageMultisample);
GET_PROC(BlitFramebuffer);
}
if (extensions.has("GL_CHROMIUM_map_sub")) {
GET_PROC_SUFFIX(MapBufferSubData, CHROMIUM);
GET_PROC_SUFFIX(MapTexSubImage2D, CHROMIUM);
GET_PROC_SUFFIX(UnmapBufferSubData, CHROMIUM);
GET_PROC_SUFFIX(UnmapTexSubImage2D, CHROMIUM);
}
if (extensions.has("GL_EXT_multisampled_render_to_texture")) {
GET_PROC_SUFFIX(FramebufferTexture2DMultisample, EXT);
functions->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStorageMultisampleProc) get(ctx, "glRenderbufferStorageMultisampleEXT");