History log of /frameworks/rs/rsHidlAdaptation.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
93ad4e01925d2ff1b3b6b3cdf375d874f6a0a60d 26-Apr-2017 Miao Wang <miaowang@google.com> Protect static global access with a global flag.

- The global objects are protected by a global flag, during
application teardown.
- The following APIs, which could potentially be called during
application teardown, will be NO-OP if global objects are no
longer alive.
rsContextCreate
rsContextCreateGL
rsContextDestroy
- Added a test of the problematic use-cases.

Detailed discussion:
https://goto.google.com/rs-static-destructor

Bug: 62027113

Test: mm
Test: Before the change to rsApiStubs.cpp, the test hangs during
termination.
Test: After the change to rsApiStubs.cpp, the test passes without any
problems.
Change-Id: I7a43a61d9ccf848c17a88e047e97d087132addda

(cherry picked from commit 296cd02e03565153f7dff971988adf8e8c6c365a)
/frameworks/rs/rsHidlAdaptation.h
0838b98ea2d72bd2262bf9bff5aca093699d64ff 21-Jan-2017 Miao Wang <miaowang@google.com> RenderScript HIDL client-side implementation

- Client-side implementation converts RenderScript HAL (top level)
from C/C++ to HIDL
- Fallback to default CPU implementation if it could not find a
matching RS driver through HIDL.
- HIDL adaptation and Graphics fallback are handled by two
corresponding singleton classes.
- Remove HOST_STATIC version of libRS from the makefile. The host
version of libRS is not used at all, and generating build errors with
HIDL.
- Always use fallback path for RS graphics API.
- Removed reference to Device from rsContext.cpp. In our current
implementation, Device is equivalent to HIDL IDevice class.
Thus, our HIDL HAL no longer provides DeviceCreate and DeviceDestroy,
making Device no longer useful to Context.
- Wait for the debugger to attach if RS_CONTEXT_WAIT_FOR_ATTACH flag
is set. The waiting part is now moved out of the context class.

Bug: 34396220
Test: mm, all CTS tests pass on bullhead, LiveWallpaper apps using RS
graphics APIs run well.

Change-Id: I86493b11328d5d8c904cebafa99243e92dfdf6a7
/frameworks/rs/rsHidlAdaptation.h