summaryrefslogtreecommitdiff
path: root/libs/hwui/debug/nullegl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/debug/nullegl.cpp')
-rw-r--r--libs/hwui/debug/nullegl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/debug/nullegl.cpp b/libs/hwui/debug/nullegl.cpp
index b6cc2f247627..1ce180dd7543 100644
--- a/libs/hwui/debug/nullegl.cpp
+++ b/libs/hwui/debug/nullegl.cpp
@@ -68,6 +68,9 @@ EGLBoolean eglTerminate(EGLDisplay dpy) {
}
const char * eglQueryString(EGLDisplay dpy, EGLint name) {
+ if (name == EGL_EXTENSIONS) {
+ return "EGL_KHR_swap_buffers_with_damage";
+ }
return "";
}
@@ -148,6 +151,10 @@ EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface) {
return EGL_TRUE;
}
+EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint rectCount) {
+ return EGL_TRUE;
+}
+
EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list) {
return (EGLImageKHR) malloc(sizeof(EGLImageKHR));
}