summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authormukesh agrawal <quiche@google.com>2017-03-27 20:26:38 -0700
committermukesh agrawal <quiche@google.com>2017-03-28 18:21:36 -0700
commit47e1c7a005d6a9f099f95265ac24b6ba320f3f13 (patch)
treec1b1292200505f23ba56c51898b908a5a649eef5 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent28882ed5d5d3fda85d50efdf3598ceda83df6c4d (diff)
StateMachine: make toString() terser
The current implementation of the toString() method calls dump(). This causes two problems: 1. toString() may return a large string. This is at odds with the advice in the documentation for Object.toString(), which says that the returned String should be concise, and easy to read. 2. The dump() method is overriden by many of the StateMachine subclasses. Some of those subclasses have dump() implementations that are expensive, and/or have dependencies on other objects. To resolve these problems, we simpify StateMachine.toString(). Along the way: remove a stale comment about implementing dump() using toString(). Note: only ran the StateMachine tests, since some other tests are already failing. Bug: 36661851 Test: tests/utiltests/runtests.sh \ -e class com.android.internal.util.StateMachineTest Change-Id: I5c16c650f01178c4d018b6a65e4aa95fb905aff6
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions