DescriptionReduce 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. #
Messages
Total messages: 11 (4 generated)
|