diff options
| author | Tim Murray <timmurray@google.com> | 2015-04-07 15:43:11 -0700 |
|---|---|---|
| committer | Tim Murray <timmurray@google.com> | 2015-04-09 12:19:00 -0700 |
| commit | ea6e0621b4716ed77635f9d81787ee7057752af1 (patch) | |
| tree | e2bbc1ba533bd2dde85997f2d3010012609287da /rsContext.cpp | |
| parent | ca3c91ff8b9a4a4ef092809ab2361ab48940a434 (diff) | |
| download | android_frameworks_rs-ea6e0621b4716ed77635f9d81787ee7057752af1.tar.gz android_frameworks_rs-ea6e0621b4716ed77635f9d81787ee7057752af1.tar.bz2 android_frameworks_rs-ea6e0621b4716ed77635f9d81787ee7057752af1.zip | |
Add cache dir to context object.
Change-Id: Icc3220329fbaee7d453259fbe1cbf34d145d195c
Diffstat (limited to 'rsContext.cpp')
| -rw-r--r-- | rsContext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rsContext.cpp b/rsContext.cpp index 9a86c86e..f8088b0a 100644 --- a/rsContext.cpp +++ b/rsContext.cpp @@ -763,6 +763,10 @@ void rsi_ContextBindRootScript(Context *rsc, RsScript vs) { #endif } +void rsi_ContextSetCacheDir(Context *rsc, const char *cacheDir, size_t cacheDir_length) { + rsc->setCacheDir(cacheDir, cacheDir_length); +} + void rsi_ContextBindSampler(Context *rsc, uint32_t slot, RsSampler vs) { Sampler *s = static_cast<Sampler *>(vs); @@ -940,4 +944,3 @@ void rsaGetName(RsContext con, void * obj, const char **name) { ObjectBase *ob = static_cast<ObjectBase *>(obj); (*name) = ob->getName(); } - |
