diff options
| author | 2009-10-29 20:24:44 -0700 | |
|---|---|---|
| committer | 2009-10-29 20:24:44 -0700 | |
| commit | 8889a8183c0a8ed2394c05c7d742554f8d0fa49d (patch) | |
| tree | 5536f0a133ee902d2386a4aa3f37609e322d49c8 | |
| parent | b0d0de329d73a70e8825ab9a7069b4c56645dc48 (diff) | |
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 744f2e940d..5fd7904be6 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) { } |