OSDN Git Service

DO NOT MERGE GraphicBufferAllocator: make frees async
authorJamie Gennis <jgennis@google.com>
Fri, 7 Dec 2012 08:38:36 +0000 (00:38 -0800)
committerJamie Gennis <jgennis@google.com>
Fri, 7 Dec 2012 18:32:13 +0000 (10:32 -0800)
commit2e59d2c3fdc0bcfedbe9c5d04d7acadc3eff8887
tree4aa8d5123d07e2898ac20a9588f23068aeccccbe
parentb21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4
DO NOT MERGE GraphicBufferAllocator: make frees async

This change makes GraphicBufferAllocator::free queue a job to another thread to
perform the actual free operation.  This prevents potentially slow free
operations from blocking rendering.

Bug: 7675940
Change-Id: Id61099d66bb4c3949d04184e0d7f192ac18076b4
include/ui/GraphicBufferAllocator.h
libs/ui/GraphicBufferAllocator.cpp