Commit a8c7e10f by Michael Spang Committed by Commit Bot

Fuchsia: Switch ScenicWindow to use PresentOrReplaceView

This avoids a deprecation warning: [01253.076] [WARNING:src/ui/bin/root_presenter/app.cc(109)] Using multiple presentations is deprecated. Call PresentOrReplaceView() to force replacement of current presentation. Bug: angleproject:4360 Change-Id: Icb1898ee542bde8c26a2dcd55c783372fc8ae7c1 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2027935 Commit-Queue: Michael Spang <spang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent f63fbcd5
...@@ -96,7 +96,7 @@ bool ScenicWindow::initialize(const std::string &name, int width, int height) ...@@ -96,7 +96,7 @@ bool ScenicWindow::initialize(const std::string &name, int width, int height)
mView->AddChild(mShape); mView->AddChild(mShape);
// Present view. // Present view.
mPresenter->PresentView(std::move(viewHolderToken), nullptr); mPresenter->PresentOrReplaceView(std::move(viewHolderToken), nullptr);
mWidth = width; mWidth = width;
mHeight = height; mHeight = height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment