Confirmed users
753
edits
Line 33: | Line 33: | ||
It may helps on perforamce if we can use the usage flag correctly to describe our purpose about the buffer. | It may helps on perforamce if we can use the usage flag correctly to describe our purpose about the buffer. | ||
== How we | == How we allocate Gralloc buffers == | ||
Most of out GraphicBuffer's are constructed by GrallocBufferActor::Create. This unconditionally uses SW_READ_OFTEN and SW_WRITE_OFTEN, which is probably bad at least for some use cases. | Most of out GraphicBuffer's are constructed by GrallocBufferActor::Create. This unconditionally uses SW_READ_OFTEN and SW_WRITE_OFTEN, which is probably bad at least for some use cases. |