summaryrefslogtreecommitdiffstats
path: root/tests/HwAccelerationTest
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-08-21 18:40:24 -0700
committerRomain Guy <romainguy@google.com>2013-08-21 18:42:46 -0700
commit5d923200846ed59e813373bde789d97d4ccc40b5 (patch)
treedb2f874cf61f812c4aa359f07d49525d8da82de8 /tests/HwAccelerationTest
parent0a8c51b1d0d66d6060afcec1eab33091d49332ae (diff)
downloadframeworks_base-5d923200846ed59e813373bde789d97d4ccc40b5.zip
frameworks_base-5d923200846ed59e813373bde789d97d4ccc40b5.tar.gz
frameworks_base-5d923200846ed59e813373bde789d97d4ccc40b5.tar.bz2
Second attempt at avoiding infinite loop in PathCache::trim()
Bug #10347089 Change-Id: I70f5a3933e848632473acc6636c88be5dc6ac430
Diffstat (limited to 'tests/HwAccelerationTest')
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java
index 9f97311..c1e7f4a 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/PathsCacheActivity.java
@@ -88,8 +88,6 @@ public class PathsCacheActivity extends Activity {
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
-
- Log.d("OpenGLRenderer", "Start frame");
canvas.drawARGB(255, 255, 255, 255);
@@ -104,6 +102,13 @@ public class PathsCacheActivity extends Activity {
canvas.drawPath(mPath, mMediumPaint);
canvas.drawPath(mPath, mMediumPaint);
+ mPath.reset();
+ buildPath(mPath);
+
+ canvas.translate(30.0f, 30.0f);
+ canvas.drawPath(mPath, mMediumPaint);
+ canvas.drawPath(mPath, mMediumPaint);
+
canvas.restore();
for (int i = 0; i < mRandom.nextInt(20); i++) {