summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorClark DuVall <cduvall@google.com>2020-01-16 11:28:13 -0800
committerClark DuVall <cduvall@google.com>2020-01-16 12:37:36 -0800
commit18b15bb3a6f97fdfc378472df0162a61361eaab9 (patch)
treebcdef197c933f2b3d3be5c6d0863f8c8d1c88daf /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2bb9f65c870626b113bd8c729d0b516aaff482cb (diff)
Reorder style items in shared libraries
AssetManager2.cpp expects style attribute IDs to be in sorted order when applying a style (see AssetManager2::GetBag). Shared libraries have a package ID of 0x00, which will mean any attribute defined in a shared library will be put before all other attributes. Once the attribute ID is looked up in the dynamic ref table, the package ID is no longer 0x00, which means this ID is no longer in sorted order. This messes up the logic in AssetManager2::GetBag, and results in some style attributes getting dropped from shared libraries. This change modifies how aapt2 sorts the style entries, sorting entries with dynamic IDs after entries with the android framework ID. This means the entries will still be in sorted order when the IDs are looked up. Bug: 147674078 Test: TableFlattenerTest.FlattenSharedLibraryWithStyle Change-Id: Ic4f4004b6d9cecde9325dcdb37f71138857f8236
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions