Commit f65b2124 by Felipe Archondo Committed by Commit Bot

[fuchsia] Change all Angle Presents to Present2s

Bug: fuchsia:41855 Change-Id: Ia754c61c0ff7256781d9bf7d97b77e3bda1b01e9 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1935327Reviewed-by: 's avatarMichael Spang <spang@chromium.org> Commit-Queue: Michael Spang <spang@chromium.org>
parent 4b53273c
...@@ -87,7 +87,8 @@ bool ScenicWindow::initialize(const std::string &name, int width, int height) ...@@ -87,7 +87,8 @@ bool ScenicWindow::initialize(const std::string &name, int width, int height)
// Create view. // Create view.
mView = std::make_unique<scenic::View>(&mScenicSession, std::move(viewToken), name); mView = std::make_unique<scenic::View>(&mScenicSession, std::move(viewToken), name);
mView->AddChild(mShape); mView->AddChild(mShape);
mScenicSession.Present(0, [](fuchsia::images::PresentationInfo info) {}); mScenicSession.Present2(0, 0,
[](fuchsia::scenic::scheduling::FuturePresentationTimes info) {});
// Present view. // Present view.
mPresenter->PresentView(std::move(viewHolderToken), nullptr); mPresenter->PresentView(std::move(viewHolderToken), nullptr);
...@@ -114,7 +115,8 @@ void ScenicWindow::resetNativeWindow() ...@@ -114,7 +115,8 @@ void ScenicWindow::resetNativeWindow()
mMaterial.SetTexture(imagePipeId); mMaterial.SetTexture(imagePipeId);
mScenicSession.ReleaseResource(imagePipeId); mScenicSession.ReleaseResource(imagePipeId);
mScenicSession.Present(0, [](fuchsia::images::PresentationInfo info) {}); mScenicSession.Present2(0, 0,
[](fuchsia::scenic::scheduling::FuturePresentationTimes info) {});
mFuchsiaEGLWindow.reset(fuchsia_egl_window_create(imagePipeHandle, mWidth, mHeight)); mFuchsiaEGLWindow.reset(fuchsia_egl_window_create(imagePipeHandle, mWidth, mHeight));
} }
......
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