|
Add methods for telling V8 how much memory audio/video is using.
Adds GetMemoryUsage() methods to Demuxer and Pipeline. Pipeline
returns the results via PipelineStatistics callbacks from the
audio and video renderers.
WebMediaPlayerImpl now recieves a method from the RenderFrameImpl
for talking to the V8 isolate and notifying it of memory changes.
This fixes a long standing issue of V8 not knowing how much memory
the media elements are soaking up.
BUG= 447898
TEST=new unittests, original oom crash page doesn't crash.
Committed: https://crrev.com/83266c7462e414731592d6e7946de4ccb10f8a5a
Cr-Commit-Position: refs/heads/master@{#356900}
Total comments: 2
Total comments: 21
Total comments: 4
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+184 lines, -21 lines) |
Patch |
 |
M |
components/html_viewer/media_factory.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/demuxer.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/mock_filters.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/pipeline.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/base/pipeline.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/base/pipeline_status.h
|
View
|
1
2
3
|
1 chunk |
+8 lines, -13 lines |
0 comments
|
Download
|
 |
M |
media/blink/buffered_data_source.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/buffered_data_source.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/buffered_data_source_unittest.cc
|
View
|
1
2
3
4
|
5 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/buffered_resource_loader.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/buffered_resource_loader.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/buffered_resource_loader_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/webmediaplayer_impl.h
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/webmediaplayer_impl.cc
|
View
|
1
2
|
5 chunks |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/webmediaplayer_params.h
|
View
|
1
2
|
4 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/blink/webmediaplayer_params.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/audio_renderer_algorithm.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/audio_renderer_algorithm.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/audio_renderer_algorithm_unittest.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer_unittest.cc
|
View
|
1
2
|
4 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer.cc
|
View
|
1
2
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer_unittest.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/video_renderer_algorithm.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/video_renderer_algorithm.cc
|
View
|
1
2
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/video_renderer_algorithm_unittest.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/renderers/audio_renderer_impl.h
|
View
|
1
2
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/renderers/audio_renderer_impl.cc
|
View
|
1
2
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/renderers/audio_renderer_impl_unittest.cc
|
View
|
1
2
|
4 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/renderers/video_renderer_impl.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/renderers/video_renderer_impl.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/renderers/video_renderer_impl_unittest.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 39 (14 generated)
|