summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2016-10-28 13:07:43 -0700
committerJoe Onorato <joeo@google.com>2016-12-07 13:24:54 -0800
commitfb9f736a3c6c2e1c91c69b1abc0456b54215e8ef (patch)
tree37542a8f3a93f073f3de7265123f9a4e32a79b83 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentb38ac0b15dfa8d28d47e5d5a18ed6d1cf26b3a96 (diff)
ProtoOutputStream convenience methods.
- Add a set of write methods to ProtoOutputStream that figure out the type. The other methods are doing all the type checking anyway, so this won't be much slower, and it's way easier to use. The expected java type casts that people would do anyway happen inside. - Add writeObject and writeRepeatedObject methods that write a pre-encoded object. - Add a constructor that takes an OutputStream, and a flush() method. Right now, all the data gets flushed at the end, but given this API it would be possible to write smaller chunks at the object boundaries and do more sophisticated buffering. Test: CTS Change-Id: Ieb852092d3d65812c81139558151de9e3f467dc8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions