OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |