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

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

Issue 2221393004: Include EXT_window_rectangles API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « src/gpu/GrCaps.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | 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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "gl/GrGLAssembleInterface.h" 9 #include "gl/GrGLAssembleInterface.h"
10 #include "GrGLUtil.h" 10 #include "GrGLUtil.h"
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // KHR_debug defines these methods to have no suffix in an OpenGL (not E S) context. 504 // KHR_debug defines these methods to have no suffix in an OpenGL (not E S) context.
505 GET_PROC(DebugMessageControl); 505 GET_PROC(DebugMessageControl);
506 GET_PROC(DebugMessageInsert); 506 GET_PROC(DebugMessageInsert);
507 GET_PROC(DebugMessageCallback); 507 GET_PROC(DebugMessageCallback);
508 GET_PROC(GetDebugMessageLog); 508 GET_PROC(GetDebugMessageLog);
509 GET_PROC(PushDebugGroup); 509 GET_PROC(PushDebugGroup);
510 GET_PROC(PopDebugGroup); 510 GET_PROC(PopDebugGroup);
511 GET_PROC(ObjectLabel); 511 GET_PROC(ObjectLabel);
512 } 512 }
513 513
514 if (extensions.has("GL_EXT_window_rectangles")) {
515 GET_PROC_SUFFIX(WindowRectangles, EXT);
516 }
517
514 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 518 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
515 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 519 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
516 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 520 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
517 } 521 }
518 522
519 if (glVer >= GR_GL_VER(4,0) || extensions.has("GL_ARB_sample_shading")) { 523 if (glVer >= GR_GL_VER(4,0) || extensions.has("GL_ARB_sample_shading")) {
520 GET_PROC(MinSampleShading); 524 GET_PROC(MinSampleShading);
521 } 525 }
522 526
523 interface->fStandard = kGL_GrGLStandard; 527 interface->fStandard = kGL_GrGLStandard;
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 // APITRACE. 894 // APITRACE.
891 if (!interface->fFunctions.fDebugMessageControl) { 895 if (!interface->fFunctions.fDebugMessageControl) {
892 extensions.remove("GL_KHR_debug"); 896 extensions.remove("GL_KHR_debug");
893 } 897 }
894 } 898 }
895 899
896 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) { 900 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) {
897 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM); 901 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM);
898 } 902 }
899 903
904 if (extensions.has("GL_EXT_window_rectangles")) {
905 GET_PROC_SUFFIX(WindowRectangles, EXT);
906 }
907
900 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 908 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
901 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 909 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
902 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 910 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
903 } 911 }
904 912
905 if (extensions.has("GL_OES_sample_shading")) { 913 if (extensions.has("GL_OES_sample_shading")) {
906 GET_PROC_SUFFIX(MinSampleShading, OES); 914 GET_PROC_SUFFIX(MinSampleShading, OES);
907 } 915 }
908 916
909 interface->fStandard = kGLES_GrGLStandard; 917 interface->fStandard = kGLES_GrGLStandard;
910 interface->fExtensions.swap(&extensions); 918 interface->fExtensions.swap(&extensions);
911 919
912 return interface; 920 return interface;
913 } 921 }
OLDNEW
« no previous file with comments | « src/gpu/GrCaps.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698