summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2014-02-24 17:52:32 -0800
committerTim Murray <timmurray@google.com>2014-02-26 12:56:38 -0800
commitb8a94e26c0a5e8f58d5b6ed04e46b411e95b77a4 (patch)
treee90cf2d7d4f89e58742bb34403626cc8bcfb0f5c /cpp/RenderScript.cpp
parent6bc047c966d52d0246a107dbda410f218f2174eb (diff)
Add getPointer for USAGE_SHARED allocations.
Change-Id: I13a2af09bbbeec6cc6131b935979ac21c02820be
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;
}