am 18ef3725: DO NOT MERGE. Fix the build.
Merge commit '18ef37258d897928c68b89535a93b99d8a817d3c' into gingerbread-plus-aosp * commit '18ef37258d897928c68b89535a93b99d8a817d3c': DO NOT MERGE. Fix the build.
This commit is contained in:
@@ -465,7 +465,8 @@ static jobject nativeDecodeAsset(JNIEnv* env, jobject clazz,
|
|||||||
jobject options) { // BitmapFactory$Options
|
jobject options) { // BitmapFactory$Options
|
||||||
SkStream* stream;
|
SkStream* stream;
|
||||||
Asset* asset = reinterpret_cast<Asset*>(native_asset);
|
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
|
// 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
|
// and we could assume optionsShareable, since assets are always RO
|
||||||
stream = copyAssetToStream(asset);
|
stream = copyAssetToStream(asset);
|
||||||
|
|||||||
Reference in New Issue
Block a user