Closed Bug 1125913 Opened 9 years ago Closed 9 years ago

Use GraphicBuffer::lockAsync() on gonk LL

Categories

(Core :: Graphics: Layers, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: sotaro, Assigned: sotaro)

Details

Attachments

(1 file)

Since gonk LL, GraphicBuffer::lockAsync() is supported. It is better to use it to minimize the GraphicBuffer lock wait. But it require GRALLOC_MODULE_API_VERSION_0_3. Otherwise, the lock is done synchronously.

http://androidxref.com/5.0.0_r2/xref/frameworks/native/libs/ui/GraphicBuffer.cpp#212
Assignee: nobody → sotaro.ikeda.g
Attachment #8555294 - Flags: review?(nical.bugzilla)
(In reply to Sotaro Ikeda [:sotaro] from comment #0)
> Since gonk LL, GraphicBuffer::lockAsync() is supported. It is better to use
> it to minimize the GraphicBuffer lock wait. But it require
> GRALLOC_MODULE_API_VERSION_0_3. Otherwise, the lock is done synchronously.

By the way, nexus-5's gralloc hal version is 2. Therefore async lock capability is not used.
Attachment #8555294 - Flags: review?(nical.bugzilla) → review+
https://hg.mozilla.org/mozilla-central/rev/a8339212a52e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: