Compatibility compile fix
PiperOrigin-RevId: 257217445
This commit is contained in:
parent
af8772fa69
commit
b77b28d9db
@ -15,6 +15,8 @@ limitations under the License.
|
|||||||
|
|
||||||
#include "tensorflow/lite/delegates/gpu/gl/egl_context.h"
|
#include "tensorflow/lite/delegates/gpu/gl/egl_context.h"
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#include "tensorflow/lite/delegates/gpu/common/status.h"
|
#include "tensorflow/lite/delegates/gpu/common/status.h"
|
||||||
#include "tensorflow/lite/delegates/gpu/gl/gl_call.h"
|
#include "tensorflow/lite/delegates/gpu/gl/gl_call.h"
|
||||||
#include "tensorflow/lite/delegates/gpu/gl/gl_errors.h"
|
#include "tensorflow/lite/delegates/gpu/gl/gl_errors.h"
|
||||||
@ -54,7 +56,7 @@ Status CreateContext(EGLDisplay display, EGLContext shared_context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool HasExtension(EGLDisplay display, const char* name) {
|
bool HasExtension(EGLDisplay display, const char* name) {
|
||||||
return strstr(eglQueryString(display, EGL_EXTENSIONS), name);
|
return std::strstr(eglQueryString(display, EGL_EXTENSIONS), name);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user