Chromium Code Reviews
DescriptionAndroid ScreenCapture: add support to device rotation.
When device is rotated during screen capturing with MediaProjection API
on Android, the rotated screen will be captured and fit into the frame requested
with padding. So when we detect a device rotation, we need to re-create capture
with the new orientation and update the oracle.
Also refactored(mainly reordered some lines) the java file a bit for a newly
added unittest file.
BUG=487935
Committed: https://crrev.com/709ed4c443cb400660e0d88c888a0e9a4fbd5536
Cr-Commit-Position: refs/heads/master@{#430111}
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comments #
Messages
Total messages: 20 (14 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||