summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2019-10-10 09:56:15 +0100
committerNeil Fuller <nfuller@google.com>2019-10-10 10:16:41 +0100
commitdef77b5cd5b242770fdacdf405326666d05b431e (patch)
tree91317ebec5b0de55478a8b1d8b6c74ab577b735f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent65e6a23e402baf609cd86dc04823e378c7107a1b (diff)
Make TimestampedValue Parcelable
Make TimestampedValue Parcelable for simplicity. TimetampedValue objects are not generally parcelable, depending on the type of the value held. Previously, TimestampedValue did not implement Parcelable to avoid committing to a general contract. Developers parceling TimestampedValue objects were expected to call TimestampedValue.writeToParcel() / TimestampedValue.readFromParcel() explicitly when they knew it was safe to do so. This also meant that TimestampedValues couldn't be used directly via AIDL. This change makes TimestampedValue parcelable because it's more familiar / convenient. Attempts to marshall a TimestampedValue that contains a non-parcelable value will still throw a RuntimeException. Bug: 140712361 Test: atest android.util.TimestampedValueTest Change-Id: I8ca9c72f0433b380ce720cd813f650e743b3ddae
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions