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.
This commit is contained in:
Mathias Agopian
2009-10-29 20:24:44 -07:00
parent ec1f1e3df1
commit d8b28e4fcd

View File

@@ -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)
{
}