зеркало из https://github.com/mozilla/moz-skia.git
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
This commit is contained in:
Родитель
8d8d9a5606
Коммит
0c63fcd0ba
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче