Commit ad8fe588 by Geoff Lang Committed by Commit Bot

Don't set native blob cache callbacks if the driver doesn't support it.

BUG=angleproject:2516 Change-Id: I147705e22a7c694d1f22088a9270c579b0941c7d Reviewed-on: https://chromium-review.googlesource.com/c/1302113Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 3ce69ba3
...@@ -143,9 +143,10 @@ void DisplayEGL::generateCaps(egl::Caps *outCaps) const ...@@ -143,9 +143,10 @@ void DisplayEGL::generateCaps(egl::Caps *outCaps) const
void DisplayEGL::setBlobCacheFuncs(EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get) void DisplayEGL::setBlobCacheFuncs(EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get)
{ {
ASSERT(mEGL->hasExtension("EGL_ANDROID_blob_cache")); if (mEGL->hasExtension("EGL_ANDROID_blob_cache"))
{
mEGL->setBlobCacheFuncsANDROID(set, get); mEGL->setBlobCacheFuncsANDROID(set, get);
}
} }
} // namespace rx } // namespace rx
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