summaryrefslogtreecommitdiffstats
path: root/tests/HwAccelerationTest
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-12-15 17:06:45 -0800
committerRomain Guy <romainguy@google.com>2010-12-15 17:28:30 -0800
commitb146b1214ef6e4fc75d98779b22434335764cfdb (patch)
tree8cfdf955b50ced23ea8301da9e66a7ee85f148bd /tests/HwAccelerationTest
parent33a8cfb0af2e1d5983bc128007ded21bcc4f2da9 (diff)
downloadframeworks_base-b146b1214ef6e4fc75d98779b22434335764cfdb.zip
frameworks_base-b146b1214ef6e4fc75d98779b22434335764cfdb.tar.gz
frameworks_base-b146b1214ef6e4fc75d98779b22434335764cfdb.tar.bz2
Fix text shadow rendering issue.
Change-Id: Ic9eb0d38ad684d2f2c95a4f586f865db911cb872
Diffstat (limited to 'tests/HwAccelerationTest')
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java
index eb0df51..1b79cb6 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/TextActivity.java
@@ -82,6 +82,14 @@ public class TextActivity extends Activity {
mLargePaint.setAlpha(100);
canvas.drawText("Hello OpenGL renderer!", 100, 500, mLargePaint);
mLargePaint.setAlpha(255);
+ mLargePaint.setShadowLayer(3.0f, 3.0f, 3.0f, 0xd000ff00);
+ mLargePaint.setColor(0x00ffff00);
+ canvas.drawText("Hello OpenGL renderer!", 100, 600, mLargePaint);
+ mLargePaint.setShadowLayer(3.0f, 3.0f, 3.0f, 0x80000000);
+ mLargePaint.setColor(0x4dffffff);
+ canvas.drawText("Hello OpenGL renderer!", 100, 650, mLargePaint);
+ mLargePaint.setAlpha(255);
+ mLargePaint.setColor(0xff000000);
mLargePaint.clearShadowLayer();
canvas.drawText("Hello OpenGL renderer!", 500, 40, mStrikePaint);