Merge "arc: Switch to measure Hardware surfaces."

This commit is contained in:
Yury Khmel
2019-03-28 23:28:06 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}