Index: base/memory/discardable_memory_allocator_android.h |
diff --git a/base/memory/discardable_memory_allocator_android.h b/base/memory/discardable_memory_allocator_android.h |
index 7ced405601ddea36d1800945174c929cd0475438..e99eb968d45ce6b406acc7fb8f99b14b91470595 100644 |
--- a/base/memory/discardable_memory_allocator_android.h |
+++ b/base/memory/discardable_memory_allocator_android.h |
@@ -44,6 +44,9 @@ class BASE_EXPORT_PRIVATE DiscardableMemoryAllocator { |
// instance. |
scoped_ptr<DiscardableMemory> Allocate(size_t size); |
+ // Returns the size that is used to create ashmem regions. |
+ size_t ashmem_region_size(); |
willchan no longer on Chromium
2014/01/15 00:37:49
Should be const, and then you'd need to made the L
Philippe
2014/01/15 09:18:12
Yeah, I thought it would have been slightly unfort
willchan no longer on Chromium
2014/01/16 01:52:37
If there is any context on this "infinite" case th
Philippe
2014/01/16 09:24:21
I'm not aware of bugs/docs for this new infinite c
|
+ |
private: |
class AshmemRegion; |
class DiscardableAshmemChunk; |
@@ -52,8 +55,8 @@ class BASE_EXPORT_PRIVATE DiscardableMemoryAllocator { |
base::ThreadChecker thread_checker_; |
const std::string name_; |
- const size_t ashmem_region_size_; |
base::Lock lock_; |
willchan no longer on Chromium
2014/01/15 00:37:49
Shouldn't need base:: here.
Philippe
2014/01/15 09:18:12
Done.
|
+ size_t ashmem_region_size_; |
ScopedVector<AshmemRegion> ashmem_regions_; |
DISALLOW_COPY_AND_ASSIGN(DiscardableMemoryAllocator); |