Platform/GFX/Gralloc: Difference between revisions

Jump to navigation Jump to search
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 create Gralloc buffers ==
== 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.
Confirmed users
753

edits

Navigation menu