diff options
author | Siva Velusamy <vsiva@google.com> | 2012-03-09 14:21:28 -0800 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2012-03-09 15:25:29 -0800 |
commit | 64d10a1da0a702ffeb086ad9c4a632f2712f1dad (patch) | |
tree | ad00d68fc373d8bdeab43b2fc83f81a983c2e659 /opengl | |
parent | df0d3ab4d03d8738a606b35bf9673950844aef4a (diff) | |
download | frameworks_base-64d10a1da0a702ffeb086ad9c4a632f2712f1dad.zip frameworks_base-64d10a1da0a702ffeb086ad9c4a632f2712f1dad.tar.gz frameworks_base-64d10a1da0a702ffeb086ad9c4a632f2712f1dad.tar.bz2 |
Expose a function to set OpenGL Trace level.
This patch adds a function setGlDebugLevel() to libEGL, and
exposes it to the Java layer at android.opengl.GLUtils.enableTracing().
Change-Id: Ia5abb130bc32fcfe3ab25b0a0a5283a54c54f357
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/java/android/opengl/GLUtils.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/opengl/java/android/opengl/GLUtils.java b/opengl/java/android/opengl/GLUtils.java index 125c56e..1527f22 100644 --- a/opengl/java/android/opengl/GLUtils.java +++ b/opengl/java/android/opengl/GLUtils.java @@ -227,9 +227,9 @@ public final class GLUtils { /** * Return a string for the EGL error code, or the hex representation * if the error is unknown. - * + * * @param error The EGL error to convert into a String. - * + * * @return An error string corresponding to the EGL error code. */ public static String getEGLErrorString(int error) { @@ -269,6 +269,14 @@ public final class GLUtils { } } + /** + * Enable tracing of OpenGL functions for this application. + * @hide + */ + public static void enableTracing() { + native_enableTracing(); + } + native private static void nativeClassInit(); native private static int native_getInternalFormat(Bitmap bitmap); @@ -277,4 +285,5 @@ public final class GLUtils { Bitmap bitmap, int type, int border); native private static int native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type); + native private static void native_enableTracing(); } |