Skip to content
Commit 3284bb4b authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Reduce unnecessary operations in perpareSurface

- If the window doesn't have surface, skip updating position
  and scale. Usually the no surface windows could be
  NotificationShade, EdgeBackGestureHandler, SecondaryHomeHandle,
  InputMethod, ScreenDecorOverlay, ScreenDecorOverlayBottom,
  ShellDropTarget.
- Only calculate dim bounds if the dim layer is showing.

Bug: 159103089
Test: DimmerTests CtsWindowManagerDeviceTestCases

Change-Id: I090675457cb465dfb4e656feb1dc272d00ebb45e
parent 5318b9db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment