summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-06-21 15:19:26 -0700
committerMathias Agopian <mathias@google.com>2010-06-21 15:19:26 -0700
commitd91ac98a8ead216b12af6df61d90229b74c7f0f6 (patch)
tree6d30e2403c332266e81949da0e7b780a054e5a10 /libs
parent28333315c6f62b303de2ec0ac9e48158ed419f06 (diff)
downloadframeworks_base-d91ac98a8ead216b12af6df61d90229b74c7f0f6.zip
frameworks_base-d91ac98a8ead216b12af6df61d90229b74c7f0f6.tar.gz
frameworks_base-d91ac98a8ead216b12af6df61d90229b74c7f0f6.tar.bz2
fix [2785833] valgrind error in android::Layer::requestBuffer
fix uninitialized variable Change-Id: I99e1b619ae8c88dd9d77b3abf4762f801019047e
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaceflinger/Layer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp
index bfd6dcc..e606f71 100644
--- a/libs/surfaceflinger/Layer.cpp
+++ b/libs/surfaceflinger/Layer.cpp
@@ -160,6 +160,7 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h,
const uint32_t hwFlags = hw.getFlags();
mFormat = format;
+ mReqFormat = format;
mWidth = w;
mHeight = h;
mSecure = (flags & ISurfaceComposer::eSecure) ? true : false;