summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-09-06 10:52:13 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-06 10:52:14 -0700
commit378d131e65348d199db36c21ba7156542bbf0045 (patch)
treeb2e41ab4962973acea7fe8a3b9b3f97581ead2be /tests
parent369bb97d02209fa800081fc3b4e8675ea7e75d34 (diff)
parent6ebdc114e0d72137394f02bc8ffe9d7a782a65c4 (diff)
downloadframeworks_base-378d131e65348d199db36c21ba7156542bbf0045.zip
frameworks_base-378d131e65348d199db36c21ba7156542bbf0045.tar.gz
frameworks_base-378d131e65348d199db36c21ba7156542bbf0045.tar.bz2
Merge "Varying-based AA rect drawing" into jb-mr1-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/ColoredRectsActivity.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/ColoredRectsActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/ColoredRectsActivity.java
index e8cdbc3..7ea2a62 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/ColoredRectsActivity.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/ColoredRectsActivity.java
@@ -113,6 +113,12 @@ public class ColoredRectsActivity extends Activity {
canvas.rotate(45);
canvas.drawRect(0, 0, 20, 10, p);
canvas.restore();
+ canvas.save();
+ canvas.translate(mOffset + 280, yOffset);
+ canvas.scale(0.5f, 8);
+ canvas.rotate(0.5f);
+ canvas.drawRect(0, 0, 80, 5, p);
+ canvas.restore();
canvas.restore();
yOffset += 100;