summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl.cpp
diff options
context:
space:
mode:
authorDavid Li <davidxli@google.com>2011-03-04 17:50:48 -0800
committerDavid Li <davidxli@google.com>2011-03-04 17:50:48 -0800
commit55c94ccd495aa19784cb4ca9a1fe51fad9631542 (patch)
treecd35774bfb10a4dabb192065513961fd6ae086c0 /opengl/libs/EGL/egl.cpp
parent28ca2abb1ab92b2cc3a5c9119ec2f697ec3401b2 (diff)
downloadframeworks_base-55c94ccd495aa19784cb4ca9a1fe51fad9631542.zip
frameworks_base-55c94ccd495aa19784cb4ca9a1fe51fad9631542.tar.gz
frameworks_base-55c94ccd495aa19784cb4ca9a1fe51fad9631542.tar.bz2
Added screenshot after glDraw* option to GLES2 Debugger
Also added timing mode option using utils/Timers.h. Factored out common code to reduce size. Improved Protobuf message. Uploads data from glBufferData and glBufferSubData. Change-Id: Iaae5e706235d942df81c7eada7223fb0b0583911 Signed-off-by: David Li <davidxli@google.com>
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-rw-r--r--opengl/libs/EGL/egl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index e427504..8e4b0ee 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -1650,6 +1650,10 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface draw)
{
+ EGLBoolean Debug_eglSwapBuffers(EGLDisplay dpy, EGLSurface draw);
+ if (gEGLDebugLevel > 0)
+ Debug_eglSwapBuffers(dpy, draw);
+
clearError();
SurfaceRef _s(draw);