summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-25 15:28:08 -0800
committerGlenn Kasten <gkasten@google.com>2012-02-03 07:37:14 -0800
commitdc3ac85009fbd549faec6a46295a9d34a19e01ac (patch)
tree50f6bd6d49f547ccca496cc2104591e955472d85 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parenta12b6d1d44113f63ad5abe5e3936accc9ede6340 (diff)
Constructor initialization and const fields
In constructors, initialize member fields in the initialization list rather than constructor body where possible. This allows more fields to be const, provided they are never modified. Also initialize POD fields in constructor, unless it's obvious they don't need to be initialized. In that case, put a comment instead. Remove explicit clear() in destructors on fields that are now const. Give AudioSessionRef a default constructor, so it's immutable fields can be marked const. Add comment about ~TrackBase() trick. Initialize fields in declaration order to make it easier to confirm that all fields are set. Move initialization of mHardwareStatus from onFirstRef() to constructor. Use NULL not 0 to initialize raw pointers in initialization list. Rename field mClient to mAudioFlingerClient, and getter from client() to audioFlingerClient(). Change-Id: Ib36cf6ed32f3cd19003f40a5d84046eb4c122052
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions