Commit a17d6c92 authored by Brian Salomon's avatar Brian Salomon Committed by Commit Bot

Add GL_NV_fence bindings to GPU process GrGLInterface setup.

This will be used by Skia for async YUV420 readbacks with ES2 ANGLE
contexts.

Bug: 1040643
Change-Id: Ifcc0bff78efcf75764902e8a2910aea7266bf327
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2015645Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Cr-Commit-Position: refs/heads/master@{#734632}
parent dfd505cf
......@@ -767,6 +767,13 @@ sk_sp<GrGLInterface> CreateGrGLInterface(
extensions.add("GL_APPLE_sync");
}
// Skia can fall back to GL_NV_fence if GLsync objects are not available.
functions->fDeleteFences = gl->glDeleteFencesNVFn;
functions->fFinishFence = gl->glFinishFenceNVFn;
functions->fGenFences = gl->glGenFencesNVFn;
functions->fSetFence = gl->glSetFenceNVFn;
functions->fTestFence = gl->glTestFenceNVFn;
functions->fGetInternalformativ = gl->glGetInternalformativFn;
interface->fStandard = standard;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment