diff options
author | Romain Guy <romainguy@google.com> | 2011-06-13 19:04:27 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-06-13 19:04:27 -0700 |
commit | 54be1cdf3d63095512120fa7ced5c16e462abffa (patch) | |
tree | 01f454747cc08f12375ae1ce458b0ef07beecbef /tests | |
parent | 40b62576ffeea06e481cae40db89455c2ddf8a63 (diff) | |
download | frameworks_base-54be1cdf3d63095512120fa7ced5c16e462abffa.zip frameworks_base-54be1cdf3d63095512120fa7ced5c16e462abffa.tar.gz frameworks_base-54be1cdf3d63095512120fa7ced5c16e462abffa.tar.bz2 |
Batch glCopyTexImage() calls to get about 15 fps back on SGX.
Change-Id: I04079e070739c1e46df3e90fc388c335e2a7d2b9
Diffstat (limited to 'tests')
-rw-r--r-- | tests/HwAccelerationTest/src/com/android/test/hwui/ClearActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/ClearActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/ClearActivity.java index b49db7c5..1c82e9b 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/ClearActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/ClearActivity.java @@ -20,7 +20,6 @@ import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Path; @@ -79,6 +78,9 @@ public class ClearActivity extends Activity { } canvas.restore(); canvas.drawText("OpenGLRenderer", 50.0f, 50.0f, mClearPaint); + mClearPaint.setColor(0xff000000); + canvas.drawRect(800.0f, 100.0f, 900.0f, 200.0f, mClearPaint); + mClearPaint.setColor(0x0000ff00); } canvas.restore(); } |