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

Issue 329663002: Fix MediaSource renderer to limit memory consumption. (Closed)

Created:
6 years, 6 months ago by Sergey Ulanov
Modified:
6 years, 6 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Visibility:
Public.

Description

Fix MediaSource renderer to limit memory consumption. MediaSource renderer wasn't marking keyframes properly, and as result SourceBuffer would keep all data it receives forever. Also added explicit remove() call to cleanup the buffers before each keyframe. Beside that changed default duration to a correct value instead of 1s It currently doesn't cause any problems, but it may in the future if MediaSource implementation is changed to handle overlapping frames differently. BUG=321825 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276574

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -18 lines) Patch
M remoting/client/plugin/chromoting_instance.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/client/plugin/media_source_video_renderer.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/client/plugin/media_source_video_renderer.cc View 1 4 chunks +11 lines, -7 lines 0 comments Download
M remoting/webapp/client_plugin.js View 1 chunk +3 lines, -1 line 0 comments Download
M remoting/webapp/js_proto/dom_proto.js View 1 1 chunk +9 lines, -0 lines 0 comments Download
M remoting/webapp/media_source_renderer.js View 1 2 chunks +25 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Sergey Ulanov
6 years, 6 months ago (2014-06-11 02:29:45 UTC) #1
Jamie
lgtm with nits. https://codereview.chromium.org/329663002/diff/20001/remoting/client/plugin/media_source_video_renderer.cc File remoting/client/plugin/media_source_video_renderer.cc (right): https://codereview.chromium.org/329663002/diff/20001/remoting/client/plugin/media_source_video_renderer.cc#newcode58 remoting/client/plugin/media_source_video_renderer.cc:58: segment_->set_max_cluster_size(0); I don't understand what these ...
6 years, 6 months ago (2014-06-11 21:41:43 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/329663002/diff/20001/remoting/client/plugin/media_source_video_renderer.cc File remoting/client/plugin/media_source_video_renderer.cc (right): https://codereview.chromium.org/329663002/diff/20001/remoting/client/plugin/media_source_video_renderer.cc#newcode58 remoting/client/plugin/media_source_video_renderer.cc:58: segment_->set_max_cluster_size(0); On 2014/06/11 21:41:42, Jamie wrote: > I don't ...
6 years, 6 months ago (2014-06-11 23:41:12 UTC) #3
Sergey Ulanov
The CQ bit was checked by sergeyu@chromium.org
6 years, 6 months ago (2014-06-11 23:41:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/329663002/60001
6 years, 6 months ago (2014-06-11 23:43:08 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 01:09:56 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 01:37:22 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/18980)
6 years, 6 months ago (2014-06-12 01:37:23 UTC) #8
Sergey Ulanov
The CQ bit was checked by sergeyu@chromium.org
6 years, 6 months ago (2014-06-12 03:43:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/329663002/60001
6 years, 6 months ago (2014-06-12 03:46:41 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 07:58:35 UTC) #11
Message was sent while issue was closed.
Change committed as 276574

Powered by Google App Engine
This is Rietveld 408576698