summaryrefslogtreecommitdiffstats
path: root/tests/HwAccelerationTest
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-17 14:42:41 -0800
committerRomain Guy <romainguy@google.com>2011-01-17 14:42:41 -0800
commitd6cd572df8067c40b3e0e7e74e58cdb456b33e92 (patch)
treebb0ed888ea6af5780ad0b92c397297ebf4a579b8 /tests/HwAccelerationTest
parent73fddbae964ee41895c8218454d0ed7fd71d6913 (diff)
downloadframeworks_base-d6cd572df8067c40b3e0e7e74e58cdb456b33e92.zip
frameworks_base-d6cd572df8067c40b3e0e7e74e58cdb456b33e92.tar.gz
frameworks_base-d6cd572df8067c40b3e0e7e74e58cdb456b33e92.tar.bz2
Improve hardware layers rendering speed when setting a View's alpha.
Change-Id: Ib1275677f531c60d9919978c5538c663fdb823b5
Diffstat (limited to 'tests/HwAccelerationTest')
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/ViewLayersActivity2.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/ViewLayersActivity2.java b/tests/HwAccelerationTest/src/com/android/test/hwui/ViewLayersActivity2.java
index a0b1d78..e795f02 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/ViewLayersActivity2.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/ViewLayersActivity2.java
@@ -38,6 +38,8 @@ public class ViewLayersActivity2 extends Activity {
setupList(R.id.list1);
setupList(R.id.list2);
setupList(R.id.list3);
+
+ findViewById(R.id.list1).setAlpha(0.7f);
}
private void setupList(int listId) {