diff options
author | John Reck <jreck@google.com> | 2018-10-29 16:45:58 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-11-08 15:32:35 -0800 |
commit | 8785ceb3b94b78312cd24e22f05610d9b654221e (patch) | |
tree | b5d3016cfa322fb354bf41b09ca86abc8e10365a /libs/hwui/tests/macrobench/TestSceneRunner.cpp | |
parent | 22b63148b14a0aac39323c1590c1cae3dc101979 (diff) |
Refactors and a potential public API for rendering
Split out the View/ViewRootImpl bits from the
hardware rendering bits.
Create a potential public API surface for
hardware rendering
Bug: 112709971
Test: builds & boots
Change-Id: I9e6f44b07a170574a905f42338282c4bb7e95f56
Diffstat (limited to 'libs/hwui/tests/macrobench/TestSceneRunner.cpp')
-rw-r--r-- | libs/hwui/tests/macrobench/TestSceneRunner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/tests/macrobench/TestSceneRunner.cpp b/libs/hwui/tests/macrobench/TestSceneRunner.cpp index 5f5a92e55bf2..5fa008b5b4df 100644 --- a/libs/hwui/tests/macrobench/TestSceneRunner.cpp +++ b/libs/hwui/tests/macrobench/TestSceneRunner.cpp @@ -132,10 +132,10 @@ void run(const TestScene::Info& info, const TestScene::Options& opts, ContextFactory factory; std::unique_ptr<RenderProxy> proxy(new RenderProxy(false, rootNode.get(), &factory)); proxy->loadSystemProperties(); - proxy->initialize(surface); + proxy->setSurface(surface); float lightX = width / 2.0; - proxy->setup(dp(800.0f), 255 * 0.075, 255 * 0.15); - proxy->setLightCenter((Vector3){lightX, dp(-200.0f), dp(800.0f)}); + proxy->setLightAlpha(255 * 0.075, 255 * 0.15); + proxy->setLightGeometry((Vector3){lightX, dp(-200.0f), dp(800.0f)}, dp(800.0f)); // Do a few cold runs then reset the stats so that the caches are all hot int warmupFrameCount = 5; |