Loading graphics/java/android/graphics/drawable/NinePatchDrawable.java +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ import android.content.res.Resources; import android.content.res.TypedArray; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; import android.util.TypedValue; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; Loading Loading @@ -99,7 +98,8 @@ public class NinePatchDrawable extends Drawable { mPadding = state.mPadding; mTargetDensity = res != null ? res.getDisplayMetrics().densityDpi : state.mTargetDensity; if (DEFAULT_DITHER != state.mDither) { //noinspection PointlessBooleanExpression if (state.mDither != DEFAULT_DITHER) { // avoid calling the setter unless we need to, since it does a // lazy allocation of a paint setDither(state.mDither); Loading libs/hwui/ProgramCache.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ const char* gFS_Fast_SingleModulateTexture = "}\n\n"; const char* gFS_Fast_SingleA8Texture = "\nvoid main(void) {\n" " gl_FragColor = vec4(0.0, 0.0, 0.0, texture2D(sampler, outTexCoords).a);\n" " gl_FragColor = texture2D(sampler, outTexCoords);\n" "}\n\n"; const char* gFS_Fast_SingleModulateA8Texture = "\nvoid main(void) {\n" Loading @@ -162,7 +162,7 @@ const char* gFS_Main_FetchTexture[2] = { }; const char* gFS_Main_FetchA8Texture[2] = { // Don't modulate " fragColor = vec4(0.0, 0.0, 0.0, texture2D(sampler, outTexCoords).a);\n", " fragColor = texture2D(sampler, outTexCoords);\n", // Modulate " fragColor = color * texture2D(sampler, outTexCoords).a;\n" }; Loading Loading
graphics/java/android/graphics/drawable/NinePatchDrawable.java +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ import android.content.res.Resources; import android.content.res.TypedArray; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; import android.util.TypedValue; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; Loading Loading @@ -99,7 +98,8 @@ public class NinePatchDrawable extends Drawable { mPadding = state.mPadding; mTargetDensity = res != null ? res.getDisplayMetrics().densityDpi : state.mTargetDensity; if (DEFAULT_DITHER != state.mDither) { //noinspection PointlessBooleanExpression if (state.mDither != DEFAULT_DITHER) { // avoid calling the setter unless we need to, since it does a // lazy allocation of a paint setDither(state.mDither); Loading
libs/hwui/ProgramCache.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ const char* gFS_Fast_SingleModulateTexture = "}\n\n"; const char* gFS_Fast_SingleA8Texture = "\nvoid main(void) {\n" " gl_FragColor = vec4(0.0, 0.0, 0.0, texture2D(sampler, outTexCoords).a);\n" " gl_FragColor = texture2D(sampler, outTexCoords);\n" "}\n\n"; const char* gFS_Fast_SingleModulateA8Texture = "\nvoid main(void) {\n" Loading @@ -162,7 +162,7 @@ const char* gFS_Main_FetchTexture[2] = { }; const char* gFS_Main_FetchA8Texture[2] = { // Don't modulate " fragColor = vec4(0.0, 0.0, 0.0, texture2D(sampler, outTexCoords).a);\n", " fragColor = texture2D(sampler, outTexCoords);\n", // Modulate " fragColor = color * texture2D(sampler, outTexCoords).a;\n" }; Loading