Skip to content

Commit

Permalink
BitmapFactory: fix missing bitmaps if purgeable assets option is used
Browse files Browse the repository at this point in the history
Change-Id: I3be1e9d02a21994ac496b1298b141de21b28cb1a
  • Loading branch information
nadlabak committed Oct 29, 2012
1 parent e8a9ac6 commit aa2943e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/jni/android/graphics/BitmapFactory.cpp
Expand Up @@ -492,7 +492,7 @@ static jobject nativeDecodeAssetScaled(JNIEnv* env, jobject clazz, jint native_a

SkStream* stream;
Asset* asset = reinterpret_cast<Asset*>(native_asset);
bool forcePurgeable = optionsPurgeable(env, options) || mPurgeableAssets;
bool forcePurgeable = optionsPurgeable(env, options) || (mPurgeableAssets && !applyScale);
if (forcePurgeable) {
// if we could "ref/reopen" the asset, we may not need to copy it here
// and we could assume optionsShareable, since assets are always RO
Expand Down

0 comments on commit aa2943e

Please sign in to comment.