diff options
author | Mathias Agopian <mathias@google.com> | 2013-04-22 11:24:02 +0200 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-04-22 11:24:02 +0200 |
commit | e692ab9a6be63193c5b52a6562d85d06c40463b8 (patch) | |
tree | 6882c21347ec6c1fc515fc51af9d222a3393ea76 /libs/gui | |
parent | bd1153382e7a9d89922bea999a52ca21d46d6caa (diff) | |
download | frameworks_native-e692ab9a6be63193c5b52a6562d85d06c40463b8.zip frameworks_native-e692ab9a6be63193c5b52a6562d85d06c40463b8.tar.gz frameworks_native-e692ab9a6be63193c5b52a6562d85d06c40463b8.tar.bz2 |
fix uninitialized variables in GLConsumer
mDefaultWidth, mDefaultHeight and mCurrentScallingMode are now
initialized to the same default value that BufferQueue uses.
Change-Id: I0d4da2022b06419d12745716d8ddbd48c8869953
Diffstat (limited to 'libs/gui')
-rw-r--r-- | libs/gui/GLConsumer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/GLConsumer.cpp b/libs/gui/GLConsumer.cpp index f8f1241..637a403 100644 --- a/libs/gui/GLConsumer.cpp +++ b/libs/gui/GLConsumer.cpp @@ -82,8 +82,11 @@ GLConsumer::GLConsumer(GLuint tex, bool allowSynchronousMode, GLenum texTarget, bool useFenceSync, const sp<BufferQueue> &bufferQueue) : ConsumerBase(bufferQueue == 0 ? new BufferQueue(allowSynchronousMode) : bufferQueue), mCurrentTransform(0), + mCurrentScalingMode(NATIVE_WINDOW_SCALING_MODE_FREEZE), mCurrentFence(Fence::NO_FENCE), mCurrentTimestamp(0), + mDefaultWidth(1), + mDefaultHeight(1), mFilteringEnabled(true), mTexName(tex), mUseFenceSync(useFenceSync), |