summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-10-29 20:24:44 -0700
committerMathias Agopian <mathias@google.com>2009-10-29 20:24:44 -0700
commitd8b28e4fcddcacdbd2b69584a4e3aa12f52e8229 (patch)
tree2be58bf1eca9c94caeb66a388ef1747d52b94005 /libs
parentec1f1e3df1ca5e73e262df479bf91a92f3ccafde (diff)
downloadframeworks_base-d8b28e4fcddcacdbd2b69584a4e3aa12f52e8229.zip
frameworks_base-d8b28e4fcddcacdbd2b69584a4e3aa12f52e8229.tar.gz
frameworks_base-d8b28e4fcddcacdbd2b69584a4e3aa12f52e8229.tar.bz2
fix [2225964] Android runtime restarted in surfaceflinger/BlurFilter.cpp
crash was due to an unintialized variable, which caused the wrong bluring format to be used and caused a memory overrrun.
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaceflinger/LayerBlur.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/surfaceflinger/LayerBlur.cpp b/libs/surfaceflinger/LayerBlur.cpp
index 744f2e9..5fd7904 100644
--- a/libs/surfaceflinger/LayerBlur.cpp
+++ b/libs/surfaceflinger/LayerBlur.cpp
@@ -40,9 +40,10 @@ const char* const LayerBlur::typeID = "LayerBlur";
LayerBlur::LayerBlur(SurfaceFlinger* flinger, DisplayID display,
const sp<Client>& client, int32_t i)
-: LayerBaseClient(flinger, display, client, i), mCacheDirty(true),
-mRefreshCache(true), mCacheAge(0), mTextureName(-1U),
-mWidthScale(1.0f), mHeightScale(1.0f)
+ : LayerBaseClient(flinger, display, client, i), mCacheDirty(true),
+ mRefreshCache(true), mCacheAge(0), mTextureName(-1U),
+ mWidthScale(1.0f), mHeightScale(1.0f),
+ mBlurFormat(GGL_PIXEL_FORMAT_RGB_565)
{
}