Merge "regenerate egl/gles stubs from glgen"
This commit is contained in:
committed by
Android (Google) Code Review
commit
0d1ab1db22
@ -1,5 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
**
|
|
||||||
** Copyright 2012, The Android Open Source Project
|
** Copyright 2012, The Android Open Source Project
|
||||||
**
|
**
|
||||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -605,7 +604,7 @@ android_eglCreateWindowSurfaceTexture
|
|||||||
jint _remaining;
|
jint _remaining;
|
||||||
EGLint *attrib_list = (EGLint *) 0;
|
EGLint *attrib_list = (EGLint *) 0;
|
||||||
android::sp<ANativeWindow> window;
|
android::sp<ANativeWindow> window;
|
||||||
android::sp<android::GLConsumer> surfaceTexture;
|
android::sp<android::GLConsumer> glConsumer;
|
||||||
|
|
||||||
if (!attrib_list_ref) {
|
if (!attrib_list_ref) {
|
||||||
_exception = 1;
|
_exception = 1;
|
||||||
@ -626,12 +625,12 @@ not_valid_surface:
|
|||||||
_exceptionMessage = "Make sure the SurfaceView or associated SurfaceHolder has a valid Surface";
|
_exceptionMessage = "Make sure the SurfaceView or associated SurfaceHolder has a valid Surface";
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
surfaceTexture = android::SurfaceTexture_getSurfaceTexture(_env, win);
|
glConsumer = android::SurfaceTexture_getSurfaceTexture(_env, win);
|
||||||
|
|
||||||
if (surfaceTexture == NULL)
|
if (glConsumer == NULL)
|
||||||
goto not_valid_surface;
|
goto not_valid_surface;
|
||||||
|
|
||||||
window = new android::Surface(surfaceTexture->getBufferQueue());
|
window = new android::Surface(glConsumer->getBufferQueue());
|
||||||
|
|
||||||
if (window == NULL)
|
if (window == NULL)
|
||||||
goto not_valid_surface;
|
goto not_valid_surface;
|
||||||
|
@ -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
|
static jint
|
||||||
android_glGetAttribLocation__ILjava_lang_String_2
|
android_glGetAttribLocation__ILjava_lang_String_2
|
||||||
(JNIEnv *_env, jobject _this, jint program, jstring name) {
|
(JNIEnv *_env, jobject _this, jint program, jstring name) {
|
||||||
jint _exception = 0;
|
jint _exception = 0;
|
||||||
const char * _exceptionType;
|
const char * _exceptionType;
|
||||||
const char * _exceptionMessage;
|
const char * _exceptionMessage;
|
||||||
int _returnValue = 0;
|
GLint _returnValue = 0;
|
||||||
const char* _nativename = 0;
|
const char* _nativename = 0;
|
||||||
|
|
||||||
if (!name) {
|
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
|
static jint
|
||||||
android_glGetUniformLocation__ILjava_lang_String_2
|
android_glGetUniformLocation__ILjava_lang_String_2
|
||||||
(JNIEnv *_env, jobject _this, jint program, jstring name) {
|
(JNIEnv *_env, jobject _this, jint program, jstring name) {
|
||||||
jint _exception = 0;
|
jint _exception = 0;
|
||||||
const char * _exceptionType;
|
const char * _exceptionType;
|
||||||
const char * _exceptionMessage;
|
const char * _exceptionMessage;
|
||||||
int _returnValue = 0;
|
GLint _returnValue = 0;
|
||||||
const char* _nativename = 0;
|
const char* _nativename = 0;
|
||||||
|
|
||||||
if (!name) {
|
if (!name) {
|
||||||
|
@ -914,7 +914,7 @@ public class GLES20 {
|
|||||||
java.nio.IntBuffer shaders
|
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(
|
public static native int glGetAttribLocation(
|
||||||
int program,
|
int program,
|
||||||
@ -1236,7 +1236,7 @@ public class GLES20 {
|
|||||||
java.nio.IntBuffer params
|
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(
|
public static native int glGetUniformLocation(
|
||||||
int program,
|
int program,
|
||||||
|
Reference in New Issue
Block a user