diff options
author | Jim Miller <jaggies@google.com> | 2010-10-25 14:49:18 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2010-10-28 14:17:49 -0700 |
commit | fb179e7afd8f02be63061b478b0283e3085fc25f (patch) | |
tree | 352450c98e7bd653c976cb56f545253b6e14fcf9 /carousel/test/res | |
parent | fe38385c1e5ce443adb962c066adeea185ad3d74 (diff) | |
download | android_frameworks_ex-fb179e7afd8f02be63061b478b0283e3085fc25f.tar.gz android_frameworks_ex-fb179e7afd8f02be63061b478b0283e3085fc25f.tar.bz2 android_frameworks_ex-fb179e7afd8f02be63061b478b0283e3085fc25f.zip |
Carousel performance improvements.
This change disables depth and changes the background bitmap
for the test case to 256x256 instead of 512x512. With these
two changes, Carousel consistently achieves 87fps with no
background and 78fps with. Both tests were with sync-to-vblank
disabled.
It also cleans up the program store names to have more
meaningful names as we add new states.
Upload after rebase.
Change-Id: I6008fbd89fbe924dbea10792b3f787fe69586fa0
Diffstat (limited to 'carousel/test/res')
-rw-r--r-- | carousel/test/res/drawable/border.png | bin | 21739 -> 9333 bytes | |||
-rw-r--r-- | carousel/test/res/layout/carousel_test.xml | 46 |
2 files changed, 46 insertions, 0 deletions
diff --git a/carousel/test/res/drawable/border.png b/carousel/test/res/drawable/border.png Binary files differindex ad025f5..723b5a0 100644 --- a/carousel/test/res/drawable/border.png +++ b/carousel/test/res/drawable/border.png diff --git a/carousel/test/res/layout/carousel_test.xml b/carousel/test/res/layout/carousel_test.xml new file mode 100644 index 0000000..86aa2e2 --- /dev/null +++ b/carousel/test/res/layout/carousel_test.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <View + android:layout_width="match_parent" + android:layout_height="100dip" + android:background="#ff800000" + android:visibility="gone"/> + + <com.android.carouseltest.MyCarouselView + android:id="@+id/carousel" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:layout_gravity="center"> + </com.android.carouseltest.MyCarouselView> + + <View + android:layout_width="match_parent" + android:layout_height="100dip" + android:background="#ff008000" + android:visibility="gone"/> + +</LinearLayout> |