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

Unified Diff: src/utils/android/ashmem.cpp

Issue 12450016: Add purge all caches to our ashmem wrapper. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/android/ashmem.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/android/ashmem.cpp
diff --git a/src/utils/android/ashmem.cpp b/src/utils/android/ashmem.cpp
index 0e1e81669da3c4436f8caa3ec725ffb374991d3e..461c062390142fdf3ab37532816c69f41e574007 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);
+}
« no previous file with comments | « src/utils/android/ashmem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698