summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-12-07 00:38:36 -0800
committerJamie Gennis <jgennis@google.com>2012-12-07 10:32:13 -0800
commit2e59d2c3fdc0bcfedbe9c5d04d7acadc3eff8887 (patch)
tree4aa8d5123d07e2898ac20a9588f23068aeccccbe /include
parentb21a4e3b5f7f07ed160ca6e1809313e2a8e2a6a4 (diff)
downloadframeworks_native-2e59d2c3fdc0bcfedbe9c5d04d7acadc3eff8887.zip
frameworks_native-2e59d2c3fdc0bcfedbe9c5d04d7acadc3eff8887.tar.gz
frameworks_native-2e59d2c3fdc0bcfedbe9c5d04d7acadc3eff8887.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/ui/GraphicBufferAllocator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/GraphicBufferAllocator.h b/include/ui/GraphicBufferAllocator.h
index dffa788..479cd3e 100644
--- a/include/ui/GraphicBufferAllocator.h
+++ b/include/ui/GraphicBufferAllocator.h
@@ -84,6 +84,7 @@ private:
static KeyedVector<buffer_handle_t, alloc_rec_t> sAllocList;
friend class Singleton<GraphicBufferAllocator>;
+ friend class BufferLiberatorThread;
GraphicBufferAllocator();
~GraphicBufferAllocator();