diff options
author | John Reck <jreck@google.com> | 2019-03-13 16:25:20 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2019-04-04 18:03:35 +0000 |
commit | 4d527226fd2dbca30798b25e6c5cf50288ffd322 (patch) | |
tree | 565315067642d9b739fafb0a83457c0566447681 /libs/hwui/tests/macrobench/TestSceneRunner.cpp | |
parent | dd07ae579c291a2b6ffe09bd576fd908eb9e5ddd (diff) |
Add back render-ahead support
Currently only supported in the EGL path.
Vulkan support Coming Soon
Bug: 127822449
Test: trace of hwuimacro
Change-Id: Iac2b039e11d964aab5b8ca1bdf2a5430b187e2ea
Diffstat (limited to 'libs/hwui/tests/macrobench/TestSceneRunner.cpp')
-rw-r--r-- | libs/hwui/tests/macrobench/TestSceneRunner.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/tests/macrobench/TestSceneRunner.cpp b/libs/hwui/tests/macrobench/TestSceneRunner.cpp index b45dbc8b832b..aa579adfb2ce 100644 --- a/libs/hwui/tests/macrobench/TestSceneRunner.cpp +++ b/libs/hwui/tests/macrobench/TestSceneRunner.cpp @@ -154,6 +154,11 @@ void run(const TestScene::Info& info, const TestScene::Options& opts, proxy->resetProfileInfo(); proxy->fence(); + if (opts.renderAhead) { + usleep(33000); + } + proxy->setRenderAheadDepth(opts.renderAhead); + ModifiedMovingAverage<double> avgMs(opts.reportFrametimeWeight); nsecs_t start = systemTime(CLOCK_MONOTONIC); |