diff options
| author | Jason Sams <jsams@google.com> | 2014-02-24 17:52:32 -0800 |
|---|---|---|
| committer | Tim Murray <timmurray@google.com> | 2014-02-26 12:56:38 -0800 |
| commit | b8a94e26c0a5e8f58d5b6ed04e46b411e95b77a4 (patch) | |
| tree | e90cf2d7d4f89e58742bb34403626cc8bcfb0f5c /cpp/RenderScript.cpp | |
| parent | 6bc047c966d52d0246a107dbda410f218f2174eb (diff) | |
Add getPointer for USAGE_SHARED allocations.
Change-Id: I13a2af09bbbeec6cc6131b935979ac21c02820be
Diffstat (limited to 'cpp/RenderScript.cpp')
| -rw-r--r-- | cpp/RenderScript.cpp | 5 |
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; } |
