diff options
| author | 2018-04-02 09:49:07 -0700 | |
|---|---|---|
| committer | 2018-04-02 10:15:22 -0700 | |
| commit | 00bf64278b0d2c13a6f1a2f8616736881414597b (patch) | |
| tree | a7a4a08325c48db2c8f0aeeff9bb66ab4cb86ab4 /opengl/libagl/TextureObjectManager.cpp | |
| parent | b62346a3ed0d8e4a9144aa90d68b10425b5b8afa (diff) | |
Do not allocate protected AHardwareBuffers with CPU access.
Depending on the gralloc implementation, allocating AHardwareBuffers
with PROTECTED_CONTENT usage and nonzero CPU read or write mask may
succeed, but the buffer won't be accessible by the CPU - either
because the lock() call will fail, or there will be memory violation
when trying to access the memory. Prevent allocating such buffers.
Bug: 77461051
Test: Builds and passes CtsNativeHardwareTestCases on Pixel XL.
Change-Id: I822c9fb2d8ce24cd0c0fc0ac765b7a71fd372199
Diffstat (limited to 'opengl/libagl/TextureObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions