From 2705c983f5e3299e1481fd98a80fc78bce927527 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Wed, 3 Feb 2016 17:39:40 -0800 Subject: [PATCH] Remove unnecessary fence in macrobench bug:26882579 Change-Id: Ic2d610b5ae7e04513dc7f7fa99d355d406a73379 --- libs/hwui/tests/macrobench/TestSceneRunner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/hwui/tests/macrobench/TestSceneRunner.cpp b/libs/hwui/tests/macrobench/TestSceneRunner.cpp index a843e9265ef1a..58c0876cb4cb3 100644 --- a/libs/hwui/tests/macrobench/TestSceneRunner.cpp +++ b/libs/hwui/tests/macrobench/TestSceneRunner.cpp @@ -112,9 +112,9 @@ void run(const TestScene::Info& info, const TestScene::Options& opts) { scene->doFrame(i); proxy->syncAndDrawFrame(); } - proxy->fence(); - nsecs_t done = systemTime(CLOCK_MONOTONIC); if (opts.reportFrametimeWeight) { + proxy->fence(); + nsecs_t done = systemTime(CLOCK_MONOTONIC); avgMs.add((done - vsync) / 1000000.0); if (i % 10 == 9) { printf("Average frametime %.3fms\n", avgMs.average());