diff options
author | Chris Craik <ccraik@google.com> | 2012-09-06 10:52:13 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-06 10:52:14 -0700 |
commit | 378d131e65348d199db36c21ba7156542bbf0045 (patch) | |
tree | b2e41ab4962973acea7fe8a3b9b3f97581ead2be /tests | |
parent | 369bb97d02209fa800081fc3b4e8675ea7e75d34 (diff) | |
parent | 6ebdc114e0d72137394f02bc8ffe9d7a782a65c4 (diff) | |
download | frameworks_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.java | 6 |
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; |