diff options
author | Glenn Kasten <gkasten@google.com> | 2014-03-14 16:49:51 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-03-18 15:07:43 -0700 |
commit | 6546f2e45861172af83b0c1e6432cae24e97d4cc (patch) | |
tree | 9adb62515f95c0520d87dcbc3375ee55da769669 /include/binder | |
parent | 75555b2eaf0a2b8eff30df422e041cbe80ec74ef (diff) | |
download | frameworks_native-6546f2e45861172af83b0c1e6432cae24e97d4cc.zip frameworks_native-6546f2e45861172af83b0c1e6432cae24e97d4cc.tar.gz frameworks_native-6546f2e45861172af83b0c1e6432cae24e97d4cc.tar.bz2 |
Allow creation of heaps that are read-only to partner
Change-Id: I3c2b3d9b1671da4b9d9c58dce27e291d30703b03
Diffstat (limited to 'include/binder')
-rw-r--r-- | include/binder/MemoryDealer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/binder/MemoryDealer.h b/include/binder/MemoryDealer.h index 170f20d..aa415d5 100644 --- a/include/binder/MemoryDealer.h +++ b/include/binder/MemoryDealer.h @@ -34,7 +34,8 @@ class SimpleBestFitAllocator; class MemoryDealer : public RefBase { public: - MemoryDealer(size_t size, const char* name = 0); + MemoryDealer(size_t size, const char* name = 0, + uint32_t flags = 0 /* or bits such as MemoryHeapBase::READ_ONLY */ ); virtual sp<IMemory> allocate(size_t size); virtual void deallocate(size_t offset); |