summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorMatt Pape <mpape@google.com>2019-02-27 15:20:50 -0800
committerMatt Pape <mpape@google.com>2019-03-06 11:15:55 -0800
commit1013d298a26259450a0aa3f537509c87caed7333 (patch)
tree739d7774ff81be9e03caf8684a2312911e97b345 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentefed8e3d28bd68a60cfcf921a2db5b49fe1a0ab2 (diff)
Add DeviceConfig.Properties and return it from change listener.
Add a second method to the OnPropertyChangedListener which returns a Properties object instead of a single flag. This object will hold only one flag for now (Q) but easily supports multiple flags at a time when we are ready to support atomic writes (R). This Properties object also contains typed getters, so we don't force every single client to dupliate the parsing and default value logic. For now, the new method in the change listener has a default implementation which calls the old method. This ensures that no one's code is broken (because they aren't implementing the new method) and no one's feature stops working (the old method is still being called). This is part 1 of a 4 step migration from the single flag callback to the new Properties callback. Part 2 will update the OneTimeDeviceConfigListener in the gts/ repo to override both the old and new callback methods. Part 3 will update the DeviceConfig.OnPropertyChangedListener to provide a default implementation for the old method instead of a default implementation for the new method. At the same time, all implementations of DeviceConfig.OnPropertyChangedListener in the core repo will be updated to implement the new method instead of the old method. Part 4 will update the OneTimeDeviceConfigListener in the gts/ repo to override only the new callback method and delete the implementation of the old callback method. These 4 parts have to happen in order. Bug: 126414261 Test: atest FrameworksCoreTests:DeviceConfigTest Change-Id: If75bce326dcdbc38e22d95982e57ad466cbecdb6
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions