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

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

Issue 1812223002: added support for glMinSampleShading (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: updated for Jim's change Created 4 years, 8 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/GrPrimitiveProcessor.h ('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 /* 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 GET_PROC(PushDebugGroup); 508 GET_PROC(PushDebugGroup);
509 GET_PROC(PopDebugGroup); 509 GET_PROC(PopDebugGroup);
510 GET_PROC(ObjectLabel); 510 GET_PROC(ObjectLabel);
511 } 511 }
512 512
513 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 513 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
514 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 514 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
515 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 515 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
516 } 516 }
517 517
518 if (glVer >= GR_GL_VER(4,0) || extensions.has("GL_ARB_sample_shading")) {
519 GET_PROC(MinSampleShading);
520 }
521
518 interface->fStandard = kGL_GrGLStandard; 522 interface->fStandard = kGL_GrGLStandard;
519 interface->fExtensions.swap(&extensions); 523 interface->fExtensions.swap(&extensions);
520 524
521 return interface; 525 return interface;
522 } 526 }
523 527
524 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { 528 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) {
525 GET_PROC_LOCAL(GetString); 529 GET_PROC_LOCAL(GetString);
526 if (nullptr == GetString) { 530 if (nullptr == GetString) {
527 return nullptr; 531 return nullptr;
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 890
887 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) { 891 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) {
888 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM); 892 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM);
889 } 893 }
890 894
891 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 895 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
892 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 896 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
893 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 897 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
894 } 898 }
895 899
900 if (extensions.has("GL_OES_sample_shading")) {
901 GET_PROC_SUFFIX(MinSampleShading, OES);
902 }
903
896 interface->fStandard = kGLES_GrGLStandard; 904 interface->fStandard = kGLES_GrGLStandard;
897 interface->fExtensions.swap(&extensions); 905 interface->fExtensions.swap(&extensions);
898 906
899 return interface; 907 return interface;
900 } 908 }
OLDNEW
« no previous file with comments | « src/gpu/GrPrimitiveProcessor.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698