Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Side by Side Diff: src/gpu/gl/GrGLAssembleInterface.cpp

Issue 1248853003: skia: GrGLAssembleGLInterface update load chromium extension functions (Closed) Base URL: https://skia.googlesource.com/skia.git@angle_deps_roll
Patch Set: Replace tab with spaces Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 GET_PROC(VertexAttribPointer); 610 GET_PROC(VertexAttribPointer);
611 GET_PROC(Viewport); 611 GET_PROC(Viewport);
612 GET_PROC(BindFramebuffer); 612 GET_PROC(BindFramebuffer);
613 GET_PROC(BindRenderbuffer); 613 GET_PROC(BindRenderbuffer);
614 GET_PROC(CheckFramebufferStatus); 614 GET_PROC(CheckFramebufferStatus);
615 GET_PROC(DeleteFramebuffers); 615 GET_PROC(DeleteFramebuffers);
616 GET_PROC(DeleteRenderbuffers); 616 GET_PROC(DeleteRenderbuffers);
617 GET_PROC(FramebufferRenderbuffer); 617 GET_PROC(FramebufferRenderbuffer);
618 GET_PROC(FramebufferTexture2D); 618 GET_PROC(FramebufferTexture2D);
619 619
620 if (version >= GR_GL_VER(3,0)) { 620 if (extensions.has("GL_CHROMIUM_framebuffer_multisample")) {
621 GET_PROC_SUFFIX(RenderbufferStorageMultisample, CHROMIUM);
622 GET_PROC_SUFFIX(BlitFramebuffer, CHROMIUM);
623 } else if (version >= GR_GL_VER(3,0)) {
621 GET_PROC(RenderbufferStorageMultisample); 624 GET_PROC(RenderbufferStorageMultisample);
622 GET_PROC(BlitFramebuffer); 625 GET_PROC(BlitFramebuffer);
623 } 626 }
624 627
628 if (extensions.has("GL_CHROMIUM_map_sub")) {
629 GET_PROC_SUFFIX(MapBufferSubData, CHROMIUM);
630 GET_PROC_SUFFIX(MapTexSubImage2D, CHROMIUM);
631 GET_PROC_SUFFIX(UnmapBufferSubData, CHROMIUM);
632 GET_PROC_SUFFIX(UnmapTexSubImage2D, CHROMIUM);
633 }
634
625 if (extensions.has("GL_EXT_multisampled_render_to_texture")) { 635 if (extensions.has("GL_EXT_multisampled_render_to_texture")) {
626 GET_PROC_SUFFIX(FramebufferTexture2DMultisample, EXT); 636 GET_PROC_SUFFIX(FramebufferTexture2DMultisample, EXT);
627 functions->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStor ageMultisampleProc) get(ctx, "glRenderbufferStorageMultisampleEXT"); 637 functions->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStor ageMultisampleProc) get(ctx, "glRenderbufferStorageMultisampleEXT");
628 } else if (extensions.has("GL_IMG_multisampled_render_to_texture")) { 638 } else if (extensions.has("GL_IMG_multisampled_render_to_texture")) {
629 GET_PROC_SUFFIX(FramebufferTexture2DMultisample, IMG); 639 GET_PROC_SUFFIX(FramebufferTexture2DMultisample, IMG);
630 functions->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStor ageMultisampleProc) get(ctx, "glRenderbufferStorageMultisampleIMG"); 640 functions->fRenderbufferStorageMultisampleES2EXT = (GrGLRenderbufferStor ageMultisampleProc) get(ctx, "glRenderbufferStorageMultisampleIMG");
631 } else if (extensions.has("GL_APPLE_framebuffer_multisample")) { 641 } else if (extensions.has("GL_APPLE_framebuffer_multisample")) {
632 functions->fRenderbufferStorageMultisampleES2APPLE = (GrGLRenderbufferSt orageMultisampleProc) get(ctx, "glRenderbufferStorageMultisampleAPPLE"); 642 functions->fRenderbufferStorageMultisampleES2APPLE = (GrGLRenderbufferSt orageMultisampleProc) get(ctx, "glRenderbufferStorageMultisampleAPPLE");
633 GET_PROC_SUFFIX(ResolveMultisampleFramebuffer, APPLE); 643 GET_PROC_SUFFIX(ResolveMultisampleFramebuffer, APPLE);
634 } 644 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 GET_PROC_SUFFIX(PushDebugGroup, KHR); 746 GET_PROC_SUFFIX(PushDebugGroup, KHR);
737 GET_PROC_SUFFIX(PopDebugGroup, KHR); 747 GET_PROC_SUFFIX(PopDebugGroup, KHR);
738 GET_PROC_SUFFIX(ObjectLabel, KHR); 748 GET_PROC_SUFFIX(ObjectLabel, KHR);
739 } 749 }
740 750
741 interface->fStandard = kGLES_GrGLStandard; 751 interface->fStandard = kGLES_GrGLStandard;
742 interface->fExtensions.swap(&extensions); 752 interface->fExtensions.swap(&extensions);
743 753
744 return interface; 754 return interface;
745 } 755 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698