OSDN Git Service

Create and read color buffer when expecting reads
authorBjoern Johansson <bjoernj@google.com>
Thu, 12 May 2016 17:38:27 +0000 (10:38 -0700)
committerBjoern Johansson <bjoernj@google.com>
Thu, 12 May 2016 17:38:27 +0000 (10:38 -0700)
commit921d0dbd51c59aa2354926d6df08bfa208ee8f7c
tree3b071206ba5147c7961b0d0b6362f319e8877cfa
parenta5172094b5a2d9c911dcaf8a5a82c6fc2d609793
Create and read color buffer when expecting reads

Make sure color buffers are created when gralloc is allocating buffers
that indicate that software reads are going to happen. In this case
software will require the rendered data to be available from the host at
a later point and that means that rendering has to be stored in a color
buffer. Also make sure that when gralloc locks a buffer for reading it
will actually read the data from the host if the buffer is marked for
reading.

Change-Id: Ief4b7fe34401727cabec9fdd5c2b9812a6c49612
system/gralloc/gralloc.cpp