diff options
author | Mathias Agopian <mathias@google.com> | 2009-10-29 20:24:44 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-10-29 20:24:44 -0700 |
commit | d8b28e4fcddcacdbd2b69584a4e3aa12f52e8229 (patch) | |
tree | 2be58bf1eca9c94caeb66a388ef1747d52b94005 | |
parent | ec1f1e3df1ca5e73e262df479bf91a92f3ccafde (diff) | |
download | frameworks_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.
-rw-r--r-- | libs/surfaceflinger/LayerBlur.cpp | 7 |
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) { } |