diff options
| author | Tim Murray <timmurray@google.com> | 2014-02-26 20:57:06 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-02-26 20:57:06 +0000 |
| commit | 5158f4b3e144b8279f0a28c88078340c1f0b736a (patch) | |
| tree | e9c49d4eb980df4db2b623409c394ad74cda77d3 /cpp/RenderScript.cpp | |
| parent | e8d18f52bcc4550d2c4010fe96452170a5465cf0 (diff) | |
| parent | b8a94e26c0a5e8f58d5b6ed04e46b411e95b77a4 (diff) | |
Merge "Add getPointer for USAGE_SHARED allocations."
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; } |
