Merge "Fix spelling of "HARDWARE""
am: 9fbe481727
Change-Id: I090ecaa896e2dcc58a500b5a92eb6ed0be974385
This commit is contained in:
@@ -231,7 +231,7 @@ static jobject doDecode(JNIEnv* env, std::unique_ptr<SkStreamRewindable> stream,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isMutable && isHardware) {
|
if (isMutable && isHardware) {
|
||||||
doThrowIAE(env, "Bitmaps with Config.HARWARE are always immutable");
|
doThrowIAE(env, "Bitmaps with Config.HARDWARE are always immutable");
|
||||||
return nullObjectReturn("Cannot create mutable hardware bitmap");
|
return nullObjectReturn("Cannot create mutable hardware bitmap");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ public class BitmapFactory {
|
|||||||
if (opts == null) return;
|
if (opts == null) return;
|
||||||
|
|
||||||
if (opts.inBitmap != null && opts.inBitmap.getConfig() == Bitmap.Config.HARDWARE) {
|
if (opts.inBitmap != null && opts.inBitmap.getConfig() == Bitmap.Config.HARDWARE) {
|
||||||
throw new IllegalArgumentException("Bitmaps with Config.HARWARE are always immutable");
|
throw new IllegalArgumentException(
|
||||||
|
"Bitmaps with Config.HARDWARE are always immutable");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts.inMutable && opts.inPreferredConfig == Bitmap.Config.HARDWARE) {
|
if (opts.inMutable && opts.inPreferredConfig == Bitmap.Config.HARDWARE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user