OSDN Git Service

Remove call to setIsOpaque (again).
authorLeon Scroggins <scroggo@google.com>
Thu, 13 Feb 2014 19:34:02 +0000 (14:34 -0500)
committerLeon Scroggins <scroggo@google.com>
Mon, 17 Feb 2014 15:46:39 +0000 (10:46 -0500)
The call was removed in I1b36b0b0ce7126031eb7b769b563c17dcd4b306a,
since setIsOpaque was deprecated in Skia.

It was accidentally reintroduced in
Id5793fa0ebc17ee8b1eecf4b3f327977fdccff71. This line is redundant
with the lines above it (which call the replacement for setIsOpaque,
setAlphaType).

Change-Id: I6520f796d639721987418ec0ecae82b3674dcbfd

core/jni/android/graphics/Bitmap.cpp

index 24160ab..d97a945 100644 (file)
@@ -466,7 +466,6 @@ static void Bitmap_setAlphaAndPremultiplied(JNIEnv* env, jobject, jlong bitmapHa
     } else {\r
         bitmap->setAlphaType(kUnpremul_SkAlphaType);\r
     }\r
-    bitmap->setIsOpaque(!hasAlpha);\r
 }\r
 \r
 static jboolean Bitmap_hasMipMap(JNIEnv* env, jobject, jlong bitmapHandle) {\r