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

Issue 1634173002: Reduce and limit video poster memory usage (Closed)

Created:
4 years, 11 months ago by aberent
Modified:
4 years, 11 months ago
Reviewers:
whywhat
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, posciak+watch_chromium.org, dgn
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce and limit video poster memory usage This CL does two things: - It limits the size of poster bitmaps used by Cast to 1024*1024 - It delays getting the poster bitmap until it is actually needed, and disposes of bitmaps when Cast has finished with them. This means that there should never be more than one poster bitmap in memory at a time (although there may be C++ and Java copies of it.). This should drastically reduce the number of OOM crashes we get from poster bitmaps. BUG=529871 Committed: https://crrev.com/fee9a5ecb3ca55d96209e15a789bd184b439f943 Cr-Commit-Position: refs/heads/master@{#371541}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix empty poster handling. Also clear poster url when player destroyed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -19 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/android/remote/remote_media_player_manager.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/media/android/remote/remote_media_player_manager.cc View 1 4 chunks +28 lines, -19 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
aberent
4 years, 11 months ago (2016-01-26 16:55:18 UTC) #2
whywhat
Very neat! lgtm! https://codereview.chromium.org/1634173002/diff/1/chrome/browser/media/android/remote/remote_media_player_manager.cc File chrome/browser/media/android/remote/remote_media_player_manager.cc (right): https://codereview.chromium.org/1634173002/diff/1/chrome/browser/media/android/remote/remote_media_player_manager.cc#newcode114 chrome/browser/media/android/remote/remote_media_player_manager.cc:114: poster_urls_[player_id] = url; Do we need ...
4 years, 11 months ago (2016-01-26 17:00:17 UTC) #3
aberent
https://codereview.chromium.org/1634173002/diff/1/chrome/browser/media/android/remote/remote_media_player_manager.cc File chrome/browser/media/android/remote/remote_media_player_manager.cc (right): https://codereview.chromium.org/1634173002/diff/1/chrome/browser/media/android/remote/remote_media_player_manager.cc#newcode114 chrome/browser/media/android/remote/remote_media_player_manager.cc:114: poster_urls_[player_id] = url; On 2016/01/26 17:00:17, whywhat wrote: > ...
4 years, 11 months ago (2016-01-26 17:21:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634173002/20001
4 years, 11 months ago (2016-01-26 17:21:30 UTC) #7
aberent
4 years, 11 months ago (2016-01-26 17:29:22 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-26 18:15:12 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 18:16:44 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fee9a5ecb3ca55d96209e15a789bd184b439f943
Cr-Commit-Position: refs/heads/master@{#371541}

Powered by Google App Engine
This is Rietveld 408576698