am 405165b6: am a446195b: Merge "Fix hasSurfaceInsets check when creating hardware renderer" into lmp-mr1-dev
* commit '405165b6cd749d0281bb1daa13bdf0a8f38112d9': Fix hasSurfaceInsets check when creating hardware renderer
This commit is contained in:
@@ -728,8 +728,8 @@ public final class ViewRootImpl implements ViewParent,
|
||||
}
|
||||
|
||||
final Rect insets = attrs.surfaceInsets;
|
||||
final boolean hasSurfaceInsets = insets.left == 0 || insets.right == 0
|
||||
|| insets.top == 0 || insets.bottom == 0;
|
||||
final boolean hasSurfaceInsets = insets.left != 0 || insets.right != 0
|
||||
|| insets.top != 0 || insets.bottom != 0;
|
||||
final boolean translucent = attrs.format != PixelFormat.OPAQUE || hasSurfaceInsets;
|
||||
mAttachInfo.mHardwareRenderer = HardwareRenderer.create(mContext, translucent);
|
||||
if (mAttachInfo.mHardwareRenderer != null) {
|
||||
|
||||
Reference in New Issue
Block a user