Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Please use discardable_memory.h since this is just an internal file providing | |
| 6 // utility functions. | |
| 7 | |
| 8 #ifndef BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_ | |
| 9 #define BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_ | |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/memory/discardable_memory.h" | |
| 13 | |
| 14 namespace base { | |
| 15 namespace internal { | |
| 16 | |
| 17 bool CreateAshmemRegion(const char* name, size_t size, int* fd, void** address); | |
|
willchan no longer on Chromium
2013/10/17 01:21:37
BASE_EXPORT_PRIVATE all of these? Why are these ev
Philippe
2013/10/17 08:56:24
This will be used by the allocator. I agree that t
| |
| 18 | |
| 19 bool DeleteAshmemRegion(int fd, size_t size, void* address); | |
| 20 | |
| 21 LockDiscardableMemoryStatus LockAshmemRegion(int fd, | |
| 22 size_t off, | |
| 23 size_t size, | |
| 24 const void* address); | |
| 25 | |
| 26 bool UnlockAshmemRegion(int fd, size_t off, size_t size, const void* address); | |
| 27 | |
| 28 } // namespace internal | |
| 29 } // namespace base | |
| 30 | |
| 31 #endif // BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_ | |
| OLD | NEW |