Merge "Do not blend opaque windows."

This commit is contained in:
Romain Guy
2011-09-26 16:13:01 -07:00
committed by Android (Google) Code Review

View File

@@ -636,7 +636,7 @@ final class WindowState implements WindowManagerPolicy.WindowState {
final boolean isHwAccelerated = (mAttrs.flags & final boolean isHwAccelerated = (mAttrs.flags &
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0; WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;
final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : mAttrs.format; final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : mAttrs.format;
if (isHwAccelerated && mAttrs.format == PixelFormat.OPAQUE) { if (!PixelFormat.formatHasAlpha(mAttrs.format)) {
flags |= Surface.OPAQUE; flags |= Surface.OPAQUE;
} }
mSurface = new Surface( mSurface = new Surface(