This (only?) affects ANGLE. Other ES platforms typically go through
EGLGLTestContext, which manually instantiates an EGLFenceSync.
In general, though, ES3 requires this API, so this is safe. Should give us
more accurate (and much less spammy) output from ES3 ANGLE performance
testing.
Bug: skia:
Change-Id: I10a608d21092aaffa4ab76e4b3d2f6e9c5cf09bb
Reviewed-on: https://skia-review.googlesource.com/14063
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
}
ret.reset(new GLFenceSync(ctx));
} else {
- if (!ctx->gl()->hasExtension("GL_APPLE_sync")) {
+ if (ctx->gl()->hasExtension("GL_APPLE_sync")) {
+ ret.reset(new GLFenceSync(ctx, "APPLE"));
+ } else if (GrGLGetVersion(ctx->gl()) >= GR_GL_VER(3, 0)) {
+ ret.reset(new GLFenceSync(ctx));
+ } else {
return nullptr;
}
- ret.reset(new GLFenceSync(ctx, "APPLE"));
}
if (!ret->validate()) {
ret = nullptr;