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

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

Issue 1510163003: Populate NVPR functions when run with command buffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/GrGLInterface.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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 GET_PROC_SUFFIX(CoverStrokePath, NV); 738 GET_PROC_SUFFIX(CoverStrokePath, NV);
739 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); 739 GET_PROC_SUFFIX(CoverFillPathInstanced, NV);
740 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); 740 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV);
741 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV); 741 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV);
742 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV); 742 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV);
743 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV); 743 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV);
744 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); 744 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV);
745 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); 745 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV);
746 } 746 }
747 747
748 if (extensions.has("GL_CHROMIUM_path_rendering")) {
749 GET_PROC_SUFFIX(MatrixLoadf, CHROMIUM);
750 GET_PROC_SUFFIX(MatrixLoadIdentity, CHROMIUM);
751 GET_PROC_SUFFIX(PathCommands, CHROMIUM);
752 GET_PROC_SUFFIX(PathParameteri, CHROMIUM);
753 GET_PROC_SUFFIX(PathParameterf, CHROMIUM);
754 GET_PROC_SUFFIX(GenPaths, CHROMIUM);
755 GET_PROC_SUFFIX(DeletePaths, CHROMIUM);
756 GET_PROC_SUFFIX(IsPath, CHROMIUM);
757 GET_PROC_SUFFIX(PathStencilFunc, CHROMIUM);
758 GET_PROC_SUFFIX(StencilFillPath, CHROMIUM);
759 GET_PROC_SUFFIX(StencilStrokePath, CHROMIUM);
760 GET_PROC_SUFFIX(StencilFillPathInstanced, CHROMIUM);
761 GET_PROC_SUFFIX(StencilStrokePathInstanced, CHROMIUM);
762 GET_PROC_SUFFIX(CoverFillPath, CHROMIUM);
763 GET_PROC_SUFFIX(CoverStrokePath, CHROMIUM);
764 GET_PROC_SUFFIX(CoverFillPathInstanced, CHROMIUM);
765 GET_PROC_SUFFIX(CoverStrokePathInstanced, CHROMIUM);
766 GET_PROC_SUFFIX(StencilThenCoverFillPath, CHROMIUM);
767 GET_PROC_SUFFIX(StencilThenCoverStrokePath, CHROMIUM);
768 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, CHROMIUM);
769 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, CHROMIUM);
770 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, CHROMIUM);
771 // GL_CHROMIUM_path_rendering additions:
772 GET_PROC_SUFFIX(BindFragmentInputLocation, CHROMIUM);
773 }
774
748 if (extensions.has("GL_NV_framebuffer_mixed_samples")) { 775 if (extensions.has("GL_NV_framebuffer_mixed_samples")) {
749 GET_PROC_SUFFIX(CoverageModulation, NV); 776 GET_PROC_SUFFIX(CoverageModulation, NV);
750 } 777 }
751 778
752 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_draw_instanced")) { 779 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_draw_instanced")) {
753 GET_PROC(DrawArraysInstanced); 780 GET_PROC(DrawArraysInstanced);
754 GET_PROC(DrawElementsInstanced); 781 GET_PROC(DrawElementsInstanced);
755 } 782 }
756 783
757 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_instanced_arrays")) { 784 if (version >= GR_GL_VER(3,0) || extensions.has("GL_EXT_instanced_arrays")) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) { 826 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base")) {
800 GET_EGL_PROC_SUFFIX(CreateImage, KHR); 827 GET_EGL_PROC_SUFFIX(CreateImage, KHR);
801 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); 828 GET_EGL_PROC_SUFFIX(DestroyImage, KHR);
802 } 829 }
803 830
804 interface->fStandard = kGLES_GrGLStandard; 831 interface->fStandard = kGLES_GrGLStandard;
805 interface->fExtensions.swap(&extensions); 832 interface->fExtensions.swap(&extensions);
806 833
807 return interface; 834 return interface;
808 } 835 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698