Make BitstreamBuffer Read-Only for input buffers on decoding/encoding

media::BitstreamBuffer should be read-only if it is created from
base::SharedMemoryHandle. The BitstreamBuffer for input buffers on video
decoding and video encoding should not be modified by video decoder and encoder.
In other words, they should be read-only. This CL sets |read_only| to true in
VideoDecodeAccelerator/VideoEncodeAccelerator Client for ARC++ path.

Bug: None
Test: Play videos with YouTube app
Test: Record videos with Google Camera App
Change-Id: I1fd96881ee27ad46c47bd8bc0df6d1c748ccfbad
Commit-Queue: Hirokazu Honda <>
Reviewed-by: Matthew Cary <>
Cr-Commit-Position: refs/heads/master@{#661306}
2 files changed