Fix the build.

Change-Id: I71e77cb3c124b31b81d952dc3897ebc414a1f701
This commit is contained in:
Romain Guy
2010-08-19 15:10:54 -07:00
parent 494413faa2
commit 4f0a8df9fe

View File

@@ -465,7 +465,8 @@ static jobject nativeDecodeAsset(JNIEnv* env, jobject clazz,
jobject options) { // BitmapFactory$Options
SkStream* stream;
Asset* asset = reinterpret_cast<Asset*>(native_asset);
if (optionsPurgeable(env, options)) {
bool forcePurgeable = optionsPurgeable(env, options);
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
stream = copyAssetToStream(asset);