Populate NVPR functions when run with command buffer
Populate the NV_path_rendering functions provided by CHROMIUM_path_rendering when the tools are being run with command buffer API. BUG=skia:2992 Review URL: https://codereview.chromium.org/1510163003
This commit is contained in:
parent
e87256c462
commit
2ca29c0b91
@ -745,6 +745,33 @@ const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) {
|
||||
GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV);
|
||||
}
|
||||
|
||||
if (extensions.has("GL_CHROMIUM_path_rendering")) {
|
||||
GET_PROC_SUFFIX(MatrixLoadf, CHROMIUM);
|
||||
GET_PROC_SUFFIX(MatrixLoadIdentity, CHROMIUM);
|
||||
GET_PROC_SUFFIX(PathCommands, CHROMIUM);
|
||||
GET_PROC_SUFFIX(PathParameteri, CHROMIUM);
|
||||
GET_PROC_SUFFIX(PathParameterf, CHROMIUM);
|
||||
GET_PROC_SUFFIX(GenPaths, CHROMIUM);
|
||||
GET_PROC_SUFFIX(DeletePaths, CHROMIUM);
|
||||
GET_PROC_SUFFIX(IsPath, CHROMIUM);
|
||||
GET_PROC_SUFFIX(PathStencilFunc, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilFillPath, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilStrokePath, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilFillPathInstanced, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilStrokePathInstanced, CHROMIUM);
|
||||
GET_PROC_SUFFIX(CoverFillPath, CHROMIUM);
|
||||
GET_PROC_SUFFIX(CoverStrokePath, CHROMIUM);
|
||||
GET_PROC_SUFFIX(CoverFillPathInstanced, CHROMIUM);
|
||||
GET_PROC_SUFFIX(CoverStrokePathInstanced, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilThenCoverFillPath, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilThenCoverStrokePath, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, CHROMIUM);
|
||||
GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, CHROMIUM);
|
||||
GET_PROC_SUFFIX(ProgramPathFragmentInputGen, CHROMIUM);
|
||||
// GL_CHROMIUM_path_rendering additions:
|
||||
GET_PROC_SUFFIX(BindFragmentInputLocation, CHROMIUM);
|
||||
}
|
||||
|
||||
if (extensions.has("GL_NV_framebuffer_mixed_samples")) {
|
||||
GET_PROC_SUFFIX(CoverageModulation, NV);
|
||||
}
|
||||
|
@ -39,6 +39,9 @@ const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) {
|
||||
GrGLInterface* newInterface = GrGLInterface::NewClone(interface);
|
||||
|
||||
newInterface->fExtensions.remove("GL_NV_path_rendering");
|
||||
newInterface->fExtensions.remove("GL_CHROMIUM_path_rendering");
|
||||
newInterface->fFunctions.fMatrixLoadf = nullptr;
|
||||
newInterface->fFunctions.fMatrixLoadIdentity = nullptr;
|
||||
newInterface->fFunctions.fPathCommands = nullptr;
|
||||
newInterface->fFunctions.fPathParameteri = nullptr;
|
||||
newInterface->fFunctions.fPathParameterf = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user