Use SCANOUT_* usage in GpuMemoryBufferVideoFramePool
Currently GpuMemoryBufferVideoFramePool allocates buffers with GPU_READ_CPU_READ_WRITE usage. This means these buffers won't be used for scanout (no fb added on CrOS). This CL simply changes the usage used when allocating buffers to SCANOUT_CPU_READ_WRITE, in this way this buffers will be created for scanout, if possible. Note that SCANOUT implies GPU_READ, meaning that in case the allocation of the buffer for scanout will fail, the buffers will be allocated exactly as they'd be if GPU_READ_CPU_READ_WRITE were used instead. Bug: b/71837407 Change-Id: I3a03daf721f1cc04038a4f6f91985b5affe2a276 Reviewed-on: https://chromium-review.googlesource.com/884401 Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Reviewed-by:Miguel Casas <mcasas@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#532286}
Showing
Please register or sign in to comment