diff options
author | 2013-03-14 17:56:58 +0000 | |
---|---|---|
committer | 2013-03-14 17:56:58 +0000 | |
commit | 0c63fcd0ba637906d4e483b530be7378e5346689 (patch) | |
tree | ee7d227beb834621bb33a3feaf193e9d219d52c1 /src/utils | |
parent | 8d8d9a560619b48bae0b375b3a133999134a570f (diff) |
Add purge all caches to our ashmem wrapper.
THIS IS COMPLETELY UNTESTED
Author: djsollen@google.com
Reviewed By: scroggo@google.com
Review URL: https://chromiumcodereview.appspot.com/12450016
git-svn-id: http://skia.googlecode.com/svn/trunk@8163 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/android/ashmem.cpp | 5 | ||||
-rw-r--r-- | src/utils/android/ashmem.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/android/ashmem.cpp b/src/utils/android/ashmem.cpp index 0e1e81669d..461c062390 100644 --- a/src/utils/android/ashmem.cpp +++ b/src/utils/android/ashmem.cpp @@ -80,3 +80,8 @@ int ashmem_get_size_region(int fd) { return ioctl(fd, ASHMEM_GET_SIZE, NULL); } + +int ashmem_purge_all_caches(int fd) +{ + return ioctl(fd, ASHMEM_PURGE_ALL_CACHES, NULL); +} diff --git a/src/utils/android/ashmem.h b/src/utils/android/ashmem.h index 2d6c0b5a47..278192b439 100644 --- a/src/utils/android/ashmem.h +++ b/src/utils/android/ashmem.h @@ -19,6 +19,7 @@ int ashmem_set_prot_region(int fd, int prot); int ashmem_pin_region(int fd, size_t offset, size_t len); int ashmem_unpin_region(int fd, size_t offset, size_t len); int ashmem_get_size_region(int fd); +int ashmem_purge_all_caches(int fd); #ifdef __cplusplus } |