summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-02-26 20:57:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-26 20:57:06 +0000
commit5158f4b3e144b8279f0a28c88078340c1f0b736a (patch)
treee9c49d4eb980df4db2b623409c394ad74cda77d3 /cpp/RenderScript.cpp
parente8d18f52bcc4550d2c4010fe96452170a5465cf0 (diff)
parentb8a94e26c0a5e8f58d5b6ed04e46b411e95b77a4 (diff)
Merge "Add getPointer for USAGE_SHARED allocations."
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index 04f1e88e..5709f799 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -401,6 +401,11 @@ static bool loadSymbols(void* handle) {
ALOGV("Couldn't initialize RS::dispatch->AllocationIoReceive");
return false;
}
+ RS::dispatch->AllocationGetPointer = (AllocationGetPointerFnPtr)dlsym(handle, "rsAllocationGetPointer");
+ if (RS::dispatch->AllocationGetPointer == NULL) {
+ ALOGV("Couldn't initialize RS::dispatch->AllocationGetPointer");
+ //return false;
+ }
return true;
}