diff options
author | 2019-02-04 16:55:40 -0800 | |
---|---|---|
committer | 2019-03-28 20:12:46 +0000 | |
commit | 70626a863a73dfdc5ed7f20cd8c45c4182a72b42 (patch) | |
tree | 51a898d4a51f9d3b717ce437d601bc09f3b2a5fb | |
parent | cb1f204387bdbfd2c49398d3aa649f3d70b6b295 (diff) |
arc: Switch to measure Hardware surfaces.
This switches SurfaceView performance measurement to hardware canvas
type. Sloweness of this sub-test is caused by CPU blit operation. This
type is not highest priority for ARC++ and hardware rendering has more
sense to check.
Bug: 116859584
Test: Manually, FPS is 60 for caroline, which is expected.
Change-Id: Ic683c040e6089b878772e902f7a975898848b364
(cherry picked from commit 10da79663169f5d59a50d1a24b53d89f9844977a)
(cherry picked from commit 198a8d4c3b879d54681515367e13347cd258672a)
-rw-r--r-- | tests/GamePerformance/src/android/gameperformance/CustomSurfaceView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GamePerformance/src/android/gameperformance/CustomSurfaceView.java b/tests/GamePerformance/src/android/gameperformance/CustomSurfaceView.java index 56161362808c..a46668dd9e24 100644 --- a/tests/GamePerformance/src/android/gameperformance/CustomSurfaceView.java +++ b/tests/GamePerformance/src/android/gameperformance/CustomSurfaceView.java @@ -104,7 +104,7 @@ public class CustomSurfaceView extends SurfaceView implements SurfaceHolder.Call if (traceCalls) { Trace.traceBegin(Trace.TRACE_TAG_GRAPHICS, LOCAL_REQUEST_BUFFER); } - Canvas canvas = mSurface.lockCanvas(null); + Canvas canvas = mSurface.lockHardwareCanvas(); if (traceCalls) { Trace.traceEnd(Trace.TRACE_TAG_GRAPHICS); } |