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

Side by Side Diff: src/gpu/gl/GrGLInterface.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 | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | 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 * Copyright 2011 Google Inc. 2 * Copyright 2011 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/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 #include "gl/GrGLExtensions.h" 10 #include "gl/GrGLExtensions.h"
(...skipping 21 matching lines...) Expand all
32 newInterface->fFunctions.fPushGroupMarker = pushGroupMarkerFn; 32 newInterface->fFunctions.fPushGroupMarker = pushGroupMarkerFn;
33 newInterface->fFunctions.fPopGroupMarker = popGroupMarkerFn; 33 newInterface->fFunctions.fPopGroupMarker = popGroupMarkerFn;
34 34
35 return newInterface; 35 return newInterface;
36 } 36 }
37 37
38 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) { 38 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) {
39 GrGLInterface* newInterface = GrGLInterface::NewClone(interface); 39 GrGLInterface* newInterface = GrGLInterface::NewClone(interface);
40 40
41 newInterface->fExtensions.remove("GL_NV_path_rendering"); 41 newInterface->fExtensions.remove("GL_NV_path_rendering");
42 newInterface->fExtensions.remove("GL_CHROMIUM_path_rendering");
43 newInterface->fFunctions.fMatrixLoadf = nullptr;
44 newInterface->fFunctions.fMatrixLoadIdentity = nullptr;
42 newInterface->fFunctions.fPathCommands = nullptr; 45 newInterface->fFunctions.fPathCommands = nullptr;
43 newInterface->fFunctions.fPathParameteri = nullptr; 46 newInterface->fFunctions.fPathParameteri = nullptr;
44 newInterface->fFunctions.fPathParameterf = nullptr; 47 newInterface->fFunctions.fPathParameterf = nullptr;
45 newInterface->fFunctions.fGenPaths = nullptr; 48 newInterface->fFunctions.fGenPaths = nullptr;
46 newInterface->fFunctions.fDeletePaths = nullptr; 49 newInterface->fFunctions.fDeletePaths = nullptr;
47 newInterface->fFunctions.fIsPath = nullptr; 50 newInterface->fFunctions.fIsPath = nullptr;
48 newInterface->fFunctions.fPathStencilFunc = nullptr; 51 newInterface->fFunctions.fPathStencilFunc = nullptr;
49 newInterface->fFunctions.fStencilFillPath = nullptr; 52 newInterface->fFunctions.fStencilFillPath = nullptr;
50 newInterface->fFunctions.fStencilStrokePath = nullptr; 53 newInterface->fFunctions.fStencilStrokePath = nullptr;
51 newInterface->fFunctions.fStencilFillPathInstanced = nullptr; 54 newInterface->fFunctions.fStencilFillPathInstanced = nullptr;
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 731
729 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) { 732 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) {
730 if (nullptr == fFunctions.fEGLCreateImage || 733 if (nullptr == fFunctions.fEGLCreateImage ||
731 nullptr == fFunctions.fEGLDestroyImage) { 734 nullptr == fFunctions.fEGLDestroyImage) {
732 RETURN_FALSE_INTERFACE 735 RETURN_FALSE_INTERFACE
733 } 736 }
734 } 737 }
735 738
736 return true; 739 return true;
737 } 740 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698