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

Issue 736033002: PepperVideoSourceHost: Use natural_size instead of visible_rect.size (Closed)

Created:
6 years, 1 month ago by magjed_chromium
Modified:
6 years, 1 month ago
Reviewers:
perkj_chrome, bbudge
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PepperVideoSourceHost: Use natural_size instead of visible_rect.size media::VideoFrame may be scaled lazily by having natural_size < visible_rect.size. PepperVideoSourceHost currently ignores this and sends the full resolution to the effects plugin anyway. This CL makes PepperVideoSourceHost respect natural_size by downscaling the frame if necessary before sending it to the effects plugin. TEST=Open the camera in 1080p with e.g. https://apprtc.appspot.com/?debug=loopback&video=minWidth=1920,minHeight=1080. Join a Hangouts. Natural size will be set to 720p and trigger a rescaling. Committed: https://crrev.com/e70be8b8758721593fa462ed08b2bcd63c21e6d1 Cr-Commit-Position: refs/heads/master@{#305031}

Patch Set 1 #

Total comments: 4

Patch Set 2 : bbudge@s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -30 lines) Patch
M content/renderer/pepper/pepper_video_source_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_video_source_host.cc View 1 5 chunks +53 lines, -30 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
magjed_chromium
perkj: Can you take a look?
6 years, 1 month ago (2014-11-19 17:22:18 UTC) #2
perkj_chrome
On 2014/11/19 17:22:18, magjed wrote: > perkj: Can you take a look? lgtm. but please ...
6 years, 1 month ago (2014-11-20 06:56:46 UTC) #3
magjed_chromium
bbudge: Can you please take a look?
6 years, 1 month ago (2014-11-20 11:57:16 UTC) #5
bbudge
https://codereview.chromium.org/736033002/diff/1/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/736033002/diff/1/content/renderer/pepper/pepper_video_source_host.cc#newcode213 content/renderer/pepper/pepper_video_source_host.cc:213: // The resolution of the frames don't change frequently, ...
6 years, 1 month ago (2014-11-20 15:21:55 UTC) #6
magjed_chromium
https://codereview.chromium.org/736033002/diff/1/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/736033002/diff/1/content/renderer/pepper/pepper_video_source_host.cc#newcode213 content/renderer/pepper/pepper_video_source_host.cc:213: // The resolution of the frames don't change frequently, ...
6 years, 1 month ago (2014-11-20 15:38:44 UTC) #7
bbudge
lgtm
6 years, 1 month ago (2014-11-20 16:06:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/736033002/20001
6 years, 1 month ago (2014-11-20 16:07:43 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-20 17:48:26 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 17:49:15 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e70be8b8758721593fa462ed08b2bcd63c21e6d1
Cr-Commit-Position: refs/heads/master@{#305031}

Powered by Google App Engine
This is Rietveld 408576698