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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/utils/android/ashmem.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2008 The Android Open Source Project 2 * Copyright 2008 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 /* 8 /*
9 * Implementation of the user-space ashmem API for devices, which have our 9 * Implementation of the user-space ashmem API for devices, which have our
10 * ashmem-enabled kernel. See ashmem-sim.c for the "fake" tmp-based version, 10 * ashmem-enabled kernel. See ashmem-sim.c for the "fake" tmp-based version,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int ashmem_unpin_region(int fd, size_t offset, size_t len) 73 int ashmem_unpin_region(int fd, size_t offset, size_t len)
74 { 74 {
75 struct ashmem_pin pin = { offset, len }; 75 struct ashmem_pin pin = { offset, len };
76 return ioctl(fd, ASHMEM_UNPIN, &pin); 76 return ioctl(fd, ASHMEM_UNPIN, &pin);
77 } 77 }
78 78
79 int ashmem_get_size_region(int fd) 79 int ashmem_get_size_region(int fd)
80 { 80 {
81 return ioctl(fd, ASHMEM_GET_SIZE, NULL); 81 return ioctl(fd, ASHMEM_GET_SIZE, NULL);
82 } 82 }
83
84 int ashmem_purge_all_caches(int fd)
85 {
86 return ioctl(fd, ASHMEM_PURGE_ALL_CACHES, NULL);
87 }
OLDNEW
« 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