diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-07 21:24:32 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-13 16:07:45 -0700 |
commit | 3f84483382be2d528918cc1a6fbc6a7d68e0b181 (patch) | |
tree | 81de0907cd7d64eea68e50539b82dc9d70c9f793 /libs | |
parent | 5ff5a84e4829bad9eb44cc9a32d8579ca089051b (diff) | |
download | frameworks_native-3f84483382be2d528918cc1a6fbc6a7d68e0b181.zip frameworks_native-3f84483382be2d528918cc1a6fbc6a7d68e0b181.tar.gz frameworks_native-3f84483382be2d528918cc1a6fbc6a7d68e0b181.tar.bz2 |
SurfaceFlinger now uses GLES 2.x when available
Bug: 8679321
Change-Id: I2b152d01fb4e2de2ea9fe87f1ddbd6826d7520d7
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gui/GLConsumer.cpp | 10 |
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; } |