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

Issue 2239163002: Add "repaint" option to PaintSingleFrame (Closed)

Created:
4 years, 4 months ago by tguilbert
Modified:
4 years, 4 months ago
Reviewers:
watk, Dale Curtis
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, mlamouri+watch-media_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add "repaint" option to PaintSingleFrame The VideoFrameCompositor currently ignores calls to PaintSingleFrame() if the passed frame is the same as the last frame. StreamTextureWrapper's (STW) GetCurrentFrame() always returns the same frame, whilst the underlying texture information has been updated. This means that it is impossible to use STW's frame with the PaintSingleFrame() method. This change adds a "repaint_duplicate_frame" boolean to the PaintSingleFrame() method, allowing the MediaPlayerRendererClient to pass the STW's frame directly. Instead of using the VideoRendererSink interface: It would have been possible to have STW implement the VideoFrameProvider interface. This meant that WMPI would have had to own a STW and create a different VideoLayer, which would have been more complex to understand, and likely harder to maintain. Instead of using the PaintSingleFrame method: It would have also been possible to have STW implement the RenderCallback interface. However, this would lead to issues due the different rate at which Render() is called, versus the rate at which MediaPlayer actuall outputs frames (and would probably degrade performance). BUG=636002 Committed: https://crrev.com/3a03dae98226541c80bceff2ee8fd97e2cde8fcc Cr-Commit-Position: refs/heads/master@{#411773}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -16 lines) Patch
M content/renderer/media/android/media_player_renderer_client.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/base/null_video_sink.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/null_video_sink.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/null_video_sink_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/video_renderer_sink.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/video_frame_compositor.h View 2 chunks +4 lines, -2 lines 0 comments Download
M media/blink/video_frame_compositor.cc View 3 chunks +11 lines, -7 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (7 generated)
tguilbert
PTAL! Thanks! Thomas
4 years, 4 months ago (2016-08-12 00:23:33 UTC) #3
watk
lgtm
4 years, 4 months ago (2016-08-12 20:59:40 UTC) #7
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/2239163002/1
4 years, 4 months ago (2016-08-12 21:13:29 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-12 21:18:37 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 21:24:08 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3a03dae98226541c80bceff2ee8fd97e2cde8fcc
Cr-Commit-Position: refs/heads/master@{#411773}

Powered by Google App Engine
This is Rietveld 408576698