OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d38308e
)
Remove unnecessary fence in macrobench
author
Chris Craik
<ccraik@google.com>
Thu, 4 Feb 2016 01:39:40 +0000
(17:39 -0800)
committer
Chris Craik
<ccraik@google.com>
Thu, 4 Feb 2016 01:39:41 +0000
(17:39 -0800)
bug:
26882579
Change-Id: Ic2d610b5ae7e04513dc7f7fa99d355d406a73379
libs/hwui/tests/macrobench/TestSceneRunner.cpp
patch
|
blob
|
history
diff --git
a/libs/hwui/tests/macrobench/TestSceneRunner.cpp
b/libs/hwui/tests/macrobench/TestSceneRunner.cpp
index
a843e92
..
58c0876
100644
(file)
--- 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());