Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Issue 2468383002: Android ScreenCapture: add support to device rotation. (Closed)

Created:
4 years, 1 month ago by braveyao
Modified:
4 years, 1 month ago
Reviewers:
miu
CC:
chromium-reviews, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, agrieve+watch_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -52 lines) Patch
M content/browser/media/capture/screen_capture_device_android.h View 2 chunks +3 lines, -1 line 0 comments Download
A content/browser/media/capture/screen_capture_device_android_unittest.cc View 1 chunk +99 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M media/capture/content/android/java/src/org/chromium/media/ScreenCapture.java View 1 12 chunks +125 lines, -45 lines 0 comments Download
M media/capture/content/android/screen_capture_machine_android.h View 3 chunks +8 lines, -1 line 0 comments Download
M media/capture/content/android/screen_capture_machine_android.cc View 2 chunks +42 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
braveyao
Hi miu@, please take a look at this when you get a chance.
4 years, 1 month ago (2016-11-03 17:34:58 UTC) #11
miu
lgtm. I was wondering about certain behaviors (like, does the OS's capturer automatically flip the ...
4 years, 1 month ago (2016-11-04 22:45:12 UTC) #12
braveyao
Thanks so much! As to your question, yes, OS will flip the capture by itself ...
4 years, 1 month ago (2016-11-04 23:10:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2468383002/20001
4 years, 1 month ago (2016-11-04 23:12:15 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-05 01:12:30 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 01:16:20 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/709ed4c443cb400660e0d88c888a0e9a4fbd5536
Cr-Commit-Position: refs/heads/master@{#430111}

Powered by Google App Engine
This is Rietveld 408576698