diff options
author | John Reck <jreck@google.com> | 2017-01-25 10:58:30 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2017-01-25 12:24:40 -0800 |
commit | 2de950d5a8b47c7b4648ada1b1260ce4b7342798 (patch) | |
tree | d374208f819ffd994c51f258b9732b231ba7d9a1 /libs/hwui/tests/macrobench/TestSceneRunner.cpp | |
parent | df7f28352029766755a4187786db12351ce843c6 (diff) |
Overhaul RenderNode's DisplayList management
* Move mValid to native
* Have destroyHardwareResources destroy everything
* Remove flaky mParentCount checks in setStaging
* All tree updates have an internal observer to
ensure onRemovedFromTree() is a reliable signal
* onRemovedFromTree() immediately releases resources
to avoid displaylist "leaks"
Test: Unit tests for validity added & pass, manually
verified that b/34072929 doesn't repro
Bug: 34072929
Change-Id: I856534b4ed1b7f009fc4b7cd13209b97fa42a71c
Diffstat (limited to 'libs/hwui/tests/macrobench/TestSceneRunner.cpp')
-rw-r--r-- | libs/hwui/tests/macrobench/TestSceneRunner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/tests/macrobench/TestSceneRunner.cpp b/libs/hwui/tests/macrobench/TestSceneRunner.cpp index 396e896a7517..f8d63978bb53 100644 --- a/libs/hwui/tests/macrobench/TestSceneRunner.cpp +++ b/libs/hwui/tests/macrobench/TestSceneRunner.cpp @@ -151,7 +151,7 @@ void run(const TestScene::Info& info, const TestScene::Options& opts, testContext.waitForVsync(); nsecs_t vsync = systemTime(CLOCK_MONOTONIC); UiFrameInfoBuilder(proxy->frameInfo()).setVsync(vsync, vsync); - proxy->syncAndDrawFrame(nullptr); + proxy->syncAndDrawFrame(); } proxy->resetProfileInfo(); @@ -167,7 +167,7 @@ void run(const TestScene::Info& info, const TestScene::Options& opts, ATRACE_NAME("UI-Draw Frame"); UiFrameInfoBuilder(proxy->frameInfo()).setVsync(vsync, vsync); scene->doFrame(i); - proxy->syncAndDrawFrame(nullptr); + proxy->syncAndDrawFrame(); } if (opts.reportFrametimeWeight) { proxy->fence(); |