diff options
author | Romain Guy <romainguy@google.com> | 2013-03-08 17:44:20 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-03-11 17:05:28 -0700 |
commit | ca89e2a68703bd428e8b66547d033a6ed35b3595 (patch) | |
tree | 5661de81848f7d26559531a1ea650ed7fea2decd /tests/HwAccelerationTest/src/com/android/test | |
parent | 6e2004089305cf2cd958b52b234459a49a4e5c83 (diff) | |
download | frameworks_base-ca89e2a68703bd428e8b66547d033a6ed35b3595.zip frameworks_base-ca89e2a68703bd428e8b66547d033a6ed35b3595.tar.gz frameworks_base-ca89e2a68703bd428e8b66547d033a6ed35b3595.tar.bz2 |
Precache paths from a worker thread
Change-Id: I3e7b53d67e0e03e403beaf55c39350ead7f1e309
Diffstat (limited to 'tests/HwAccelerationTest/src/com/android/test')
-rw-r--r-- | tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java index 9ab2a86..ac8ab1f 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java @@ -45,13 +45,13 @@ public class PathsCacheActivity extends Activity { setContentView(view); } - private Path makePath() { + private static Path makePath() { Path path = new Path(); buildPath(path); return path; } - private void buildPath(Path path) { + private static void buildPath(Path path) { path.moveTo(0.0f, 0.0f); path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); |