Proper Android fix, and revert of workaround in r5267. Unreviewed.

git-svn-id: http://skia.googlecode.com/svn/trunk@5269 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
senorblanco@chromium.org 2012-08-23 19:10:04 +00:00
parent 42e1f0f573
commit d912ca4199
2 changed files with 2 additions and 4 deletions

View File

@ -92,10 +92,6 @@ bool SkBlendImageFilter::onFilterImage(Proxy* proxy,
SkBitmap* dst,
SkIPoint* offset) {
SkBitmap background, foreground = src;
// FIXME: This shouldn't happen, but some reason it does on Android.
// (bad serialization?)
if (NULL == fBackground)
return false;
SkASSERT(NULL != fBackground);
if (!fBackground->filterImage(proxy, src, ctm, &background, offset)) {
return false;

View File

@ -21,6 +21,7 @@
#include "Sk1DPathEffect.h"
#include "Sk2DPathEffect.h"
#include "SkAvoidXfermode.h"
#include "SkBitmapSource.h"
#include "SkBlendImageFilter.h"
#include "SkBlurDrawLooper.h"
#include "SkBlurImageFilter.h"
@ -53,6 +54,7 @@ void SkFlattenable::InitializeFlattenables() {
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource)
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlendImageFilter)
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)