diff options
| author | 2021-12-13 21:40:44 +0000 | |
|---|---|---|
| committer | 2021-12-16 19:36:46 +0000 | |
| commit | c93d29cfab64e9f40d438650e1a611cafedd2884 (patch) | |
| tree | 2c214123f04859e20e67b0bc0c3327d1bb0d3dc2 /libs/androidfw/StringPool.cpp | |
| parent | dc63dc4d572d2a330be5e4ba9c9bcc5f758d8fce (diff) | |
Enforce that RuntimeShader is only hardware accelerated
Throw an illegal argument exception any time a Paint with
a RuntimeShader is attempted to be drawn into a software
canvas. Also mark that a Picture that uses a RuntimeShader is
properly marked as requiring hardware acceleration.
These tests check that the use of RuntimeShaders trigger
Bug: 189102731
Bug: 201546136
Test: atest CtsUiRenderingTestCases:RuntimeShaderTests
Change-Id: Id0ee4d1f05e2975031121298b45f925ee74f6818
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions