forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
camera: Pass internal screen's rotation angle to VCD delegate directly
Currently ScreenObserverDelegate pass a reference of Display to VCD delegate when screen's event happens. However, it is not safe to pass reference if we can't control its lifetime. In this case, copy a Display object and pass it to the task runner is much safer. Moreover, since VCD delegate only need screen's rotation angle, this CL only passed the angle to task runner. Bug: b:281837116 Test: Rotation works well when rotating screen in tablet mode. Test: tast run DUT camera.CCAUIScreenRotate.* Change-Id: Ia3684107c49b95543e54bd31fb154bfa160aa567 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5086898 Commit-Queue: Sean Li <seannli@google.com> Reviewed-by: Kam Kwankajornkiet <kamchonlathorn@chromium.org> Cr-Commit-Position: refs/heads/main@{#1236941}
- Loading branch information
Showing
4 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters