From 70626a863a73dfdc5ed7f20cd8c45c4182a72b42 Mon Sep 17 00:00:00 2001 From: "khmel@google.com" Date: Mon, 4 Feb 2019 16:55:40 -0800 Subject: [PATCH] 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) --- .../src/android/gameperformance/CustomSurfaceView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GamePerformance/src/android/gameperformance/CustomSurfaceView.java b/tests/GamePerformance/src/android/gameperformance/CustomSurfaceView.java index 56161362808cd..a46668dd9e241 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); }