Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: base/memory/discardable_memory_android.h

Issue 189113006: Move ashmem utility functions to discardable_memory_allocator_android.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 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 used both by discardable_memory_android.cc and
7 // discardable_memory_allocator_android.cc.
8
9 #ifndef BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_
10 #define BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_
11
12 #include "base/basictypes.h"
13 #include "base/memory/discardable_memory.h"
14
15 namespace base {
16 namespace internal {
17
18 bool CreateAshmemRegion(const char* name, size_t size, int* fd, void** address);
19
20 bool CloseAshmemRegion(int fd, size_t size, void* address);
21
22 DiscardableMemoryLockStatus LockAshmemRegion(int fd,
23 size_t offset,
24 size_t size,
25 const void* address);
26
27 bool UnlockAshmemRegion(int fd,
28 size_t offset,
29 size_t size,
30 const void* address);
31
32 } // namespace internal
33 } // namespace base
34
35 #endif // BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_
OLDNEW
« no previous file with comments | « base/memory/discardable_memory_allocator_android.cc ('k') | base/memory/discardable_memory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698