summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-08-14 15:45:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-14 15:45:21 -0700
commitb881700ab160b4544453bf8920e3022d46fee262 (patch)
treefb8a662cf54a1be7b1e3d3b11d64f389c1c00cec /libs/gui
parent8bf4e52cdfc3b9a8101d5945124fb7c4fd92c84e (diff)
parent56f825e7ab9f83706a74dcd4825c7bc839e49ae4 (diff)
downloadframeworks_native-b881700ab160b4544453bf8920e3022d46fee262.zip
frameworks_native-b881700ab160b4544453bf8920e3022d46fee262.tar.gz
frameworks_native-b881700ab160b4544453bf8920e3022d46fee262.tar.bz2
am 56f825e7: Merge "SurfaceFlinger now uses GLES 2.x when available" into klp-dev
* commit '56f825e7ab9f83706a74dcd4825c7bc839e49ae4': SurfaceFlinger now uses GLES 2.x when available
Diffstat (limited to 'libs/gui')
-rw-r--r--libs/gui/GLConsumer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/gui/GLConsumer.cpp b/libs/gui/GLConsumer.cpp
index 482317f..0a2afbf 100644
--- a/libs/gui/GLConsumer.cpp
+++ b/libs/gui/GLConsumer.cpp
@@ -89,8 +89,8 @@ static void mtxMul(float out[16], const float a[16], const float b[16]);
Mutex GLConsumer::sStaticInitLock;
sp<GraphicBuffer> GLConsumer::sReleasedTexImageBuffer;
-GLConsumer::GLConsumer(const sp<IGraphicBufferConsumer>& bq, GLuint tex,
- GLenum texTarget, bool useFenceSync, bool isControlledByApp) :
+GLConsumer::GLConsumer(const sp<IGraphicBufferConsumer>& bq, uint32_t tex,
+ uint32_t texTarget, bool useFenceSync, bool isControlledByApp) :
ConsumerBase(bq, isControlledByApp),
mCurrentTransform(0),
mCurrentScalingMode(NATIVE_WINDOW_SCALING_MODE_FREEZE),
@@ -523,7 +523,7 @@ status_t GLConsumer::detachFromContext() {
return OK;
}
-status_t GLConsumer::attachToContext(GLuint tex) {
+status_t GLConsumer::attachToContext(uint32_t tex) {
ATRACE_CALL();
ST_LOGV("attachToContext");
Mutex::Autolock lock(mMutex);
@@ -554,7 +554,7 @@ status_t GLConsumer::attachToContext(GLuint tex) {
// We need to bind the texture regardless of whether there's a current
// buffer.
- glBindTexture(mTexTarget, tex);
+ glBindTexture(mTexTarget, GLuint(tex));
if (mCurrentTextureBuf != NULL) {
// The EGLImageKHR that was associated with the slot was destroyed when
@@ -689,7 +689,7 @@ bool GLConsumer::isExternalFormat(uint32_t format)
return false;
}
-GLenum GLConsumer::getCurrentTextureTarget() const {
+uint32_t GLConsumer::getCurrentTextureTarget() const {
return mTexTarget;
}