diff options
author | Mathias Agopian <mathias@google.com> | 2013-02-22 20:08:06 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-02-22 20:08:06 -0800 |
commit | 89be00bcda2b5965757e83bdf70a650b64373045 (patch) | |
tree | e2cd9158a88cd014a8e884e0fd2d3b7165e26f33 | |
parent | eab51de4de88219256260fe26e2018a6234ef83b (diff) | |
download | frameworks_base-89be00bcda2b5965757e83bdf70a650b64373045.zip frameworks_base-89be00bcda2b5965757e83bdf70a650b64373045.tar.gz frameworks_base-89be00bcda2b5965757e83bdf70a650b64373045.tar.bz2 |
regenerate egl/gles stubs from glgen
those are minor cosmetic changes.
Change-Id: I84ee5383577f0ca33ed7cc32d03e53c1475f068d
-rw-r--r-- | core/jni/android_opengl_EGL14.cpp | 9 | ||||
-rw-r--r-- | core/jni/android_opengl_GLES20.cpp | 8 | ||||
-rw-r--r-- | opengl/java/android/opengl/GLES20.java | 4 |
3 files changed, 10 insertions, 11 deletions
diff --git a/core/jni/android_opengl_EGL14.cpp b/core/jni/android_opengl_EGL14.cpp index 26fc261..196004a 100644 --- a/core/jni/android_opengl_EGL14.cpp +++ b/core/jni/android_opengl_EGL14.cpp @@ -1,5 +1,4 @@ /* -** ** Copyright 2012, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -605,7 +604,7 @@ android_eglCreateWindowSurfaceTexture jint _remaining; EGLint *attrib_list = (EGLint *) 0; android::sp<ANativeWindow> window; - android::sp<android::GLConsumer> surfaceTexture; + android::sp<android::GLConsumer> glConsumer; if (!attrib_list_ref) { _exception = 1; @@ -626,12 +625,12 @@ not_valid_surface: _exceptionMessage = "Make sure the SurfaceView or associated SurfaceHolder has a valid Surface"; goto exit; } - surfaceTexture = android::SurfaceTexture_getSurfaceTexture(_env, win); + glConsumer = android::SurfaceTexture_getSurfaceTexture(_env, win); - if (surfaceTexture == NULL) + if (glConsumer == NULL) goto not_valid_surface; - window = new android::Surface(surfaceTexture->getBufferQueue()); + window = new android::Surface(glConsumer->getBufferQueue()); if (window == NULL) goto not_valid_surface; diff --git a/core/jni/android_opengl_GLES20.cpp b/core/jni/android_opengl_GLES20.cpp index c530117..a263f8b 100644 --- a/core/jni/android_opengl_GLES20.cpp +++ b/core/jni/android_opengl_GLES20.cpp @@ -2127,14 +2127,14 @@ android_glGetAttachedShaders__IILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2 } } -/* int glGetAttribLocation ( GLuint program, const char *name ) */ +/* GLint glGetAttribLocation ( GLuint program, const char *name ) */ static jint android_glGetAttribLocation__ILjava_lang_String_2 (JNIEnv *_env, jobject _this, jint program, jstring name) { jint _exception = 0; const char * _exceptionType; const char * _exceptionMessage; - int _returnValue = 0; + GLint _returnValue = 0; const char* _nativename = 0; if (!name) { @@ -3983,14 +3983,14 @@ android_glGetUniformiv__IILjava_nio_IntBuffer_2 } } -/* int glGetUniformLocation ( GLuint program, const char *name ) */ +/* GLint glGetUniformLocation ( GLuint program, const char *name ) */ static jint android_glGetUniformLocation__ILjava_lang_String_2 (JNIEnv *_env, jobject _this, jint program, jstring name) { jint _exception = 0; const char * _exceptionType; const char * _exceptionMessage; - int _returnValue = 0; + GLint _returnValue = 0; const char* _nativename = 0; if (!name) { diff --git a/opengl/java/android/opengl/GLES20.java b/opengl/java/android/opengl/GLES20.java index 2eeae62..e99d412 100644 --- a/opengl/java/android/opengl/GLES20.java +++ b/opengl/java/android/opengl/GLES20.java @@ -914,7 +914,7 @@ public class GLES20 { java.nio.IntBuffer shaders ); - // C function int glGetAttribLocation ( GLuint program, const char *name ) + // C function GLint glGetAttribLocation ( GLuint program, const char *name ) public static native int glGetAttribLocation( int program, @@ -1236,7 +1236,7 @@ public class GLES20 { java.nio.IntBuffer params ); - // C function int glGetUniformLocation ( GLuint program, const char *name ) + // C function GLint glGetUniformLocation ( GLuint program, const char *name ) public static native int glGetUniformLocation( int program, |