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

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

Issue 1507373004: Use a pseudo-extension CHROMIUM_framebuffer_mixed_samples (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years 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 | 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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, CHROMIUM); 768 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, CHROMIUM);
769 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, CHROMIUM); 769 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, CHROMIUM);
770 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, CHROMIUM); 770 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, CHROMIUM);
771 // GL_CHROMIUM_path_rendering additions: 771 // GL_CHROMIUM_path_rendering additions:
772 GET_PROC_SUFFIX(BindFragmentInputLocation, CHROMIUM); 772 GET_PROC_SUFFIX(BindFragmentInputLocation, CHROMIUM);
773 } 773 }
774 774
775 if (extensions.has("GL_NV_framebuffer_mixed_samples")) { 775 if (extensions.has("GL_NV_framebuffer_mixed_samples")) {
776 GET_PROC_SUFFIX(CoverageModulation, NV); 776 GET_PROC_SUFFIX(CoverageModulation, NV);
777 } 777 }
778 if (extensions.has("GL_CHROMIUM_framebuffer_mixed_samples")) {
779 GET_PROC_SUFFIX(CoverageModulation, CHROMIUM);
780 }
778 781
779 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_draw_instanced")) { 782 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_draw_instanced")) {
780 GET_PROC(DrawArraysInstanced); 783 GET_PROC(DrawArraysInstanced);
781 GET_PROC(DrawElementsInstanced); 784 GET_PROC(DrawElementsInstanced);
782 } 785 }
783 786
784 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_instanced_arrays")) { 787 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_instanced_arrays")) {
785 GET_PROC(VertexAttribDivisor); 788 GET_PROC(VertexAttribDivisor);
786 } 789 }
787 790
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 829 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
827 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 830 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
828 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 831 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
829 } 832 }
830 833
831 interface->fStandard = kGLES_GrGLStandard; 834 interface->fStandard = kGLES_GrGLStandard;
832 interface->fExtensions.swap(&extensions); 835 interface->fExtensions.swap(&extensions);
833 836
834 return interface; 837 return interface;
835 } 838 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698