am 18b055e1: Merge "Pass surface insets from window attributes rather than params" into lmp-mr1-dev
* commit '18b055e106d5452ef390716d3ea8d1641a225361': Pass surface insets from window attributes rather than params
This commit is contained in:
@@ -1746,8 +1746,8 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
if (hwInitialized ||
|
if (hwInitialized ||
|
||||||
mWidth != mAttachInfo.mHardwareRenderer.getWidth() ||
|
mWidth != mAttachInfo.mHardwareRenderer.getWidth() ||
|
||||||
mHeight != mAttachInfo.mHardwareRenderer.getHeight()) {
|
mHeight != mAttachInfo.mHardwareRenderer.getHeight()) {
|
||||||
final Rect surfaceInsets = params != null ? params.surfaceInsets : null;
|
mAttachInfo.mHardwareRenderer.setup(
|
||||||
mAttachInfo.mHardwareRenderer.setup(mWidth, mHeight, surfaceInsets);
|
mWidth, mHeight, mWindowAttributes.surfaceInsets);
|
||||||
if (!hwInitialized) {
|
if (!hwInitialized) {
|
||||||
mAttachInfo.mHardwareRenderer.invalidate(mSurface);
|
mAttachInfo.mHardwareRenderer.invalidate(mSurface);
|
||||||
mFullRedrawNeeded = true;
|
mFullRedrawNeeded = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user