diff options
author | Siva Velusamy <vsiva@google.com> | 2012-12-14 17:09:06 -0800 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2012-12-19 16:31:56 -0800 |
commit | 0c1761bd37815c3776608a19c8e11d862b3e910c (patch) | |
tree | 79ba5b10c39459913dad480243e0211b63ed41b0 /core/jni/android/opengl | |
parent | 0490f02eb72adcfd652f5e8373bf0a6c99592d54 (diff) | |
download | frameworks_base-0c1761bd37815c3776608a19c8e11d862b3e910c.zip frameworks_base-0c1761bd37815c3776608a19c8e11d862b3e910c.tar.gz frameworks_base-0c1761bd37815c3776608a19c8e11d862b3e910c.tar.bz2 |
DdmServer: add controls for OpenGL tracing
Add a new JDWP packet to allow control of OpenGL tracing.
Change-Id: Ic89e2f6299238a612df2f914581049f2cbba088c
Diffstat (limited to 'core/jni/android/opengl')
-rw-r--r-- | core/jni/android/opengl/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/jni/android/opengl/util.cpp b/core/jni/android/opengl/util.cpp index 634efa6..44af199 100644 --- a/core/jni/android/opengl/util.cpp +++ b/core/jni/android/opengl/util.cpp @@ -557,9 +557,9 @@ void nativeUtilsClassInit(JNIEnv *env, jclass clazz) } extern void setGLDebugLevel(int level); -void nativeEnableTracing(JNIEnv *env, jclass clazz) +void setTracingLevel(JNIEnv *env, jclass clazz, jint level) { - setGLDebugLevel(1); + setGLDebugLevel(level); } static int checkFormat(SkBitmap::Config config, int format, int type) @@ -1032,7 +1032,7 @@ static JNINativeMethod gUtilsMethods[] = { { "native_getType", "(Landroid/graphics/Bitmap;)I", (void*) util_getType }, { "native_texImage2D", "(IIILandroid/graphics/Bitmap;II)I", (void*)util_texImage2D }, { "native_texSubImage2D", "(IIIILandroid/graphics/Bitmap;II)I", (void*)util_texSubImage2D }, - { "native_enableTracing", "()V", (void*)nativeEnableTracing }, + { "setTracingLevel", "(I)V", (void*)setTracingLevel }, }; static JNINativeMethod gEtc1Methods[] = { |