Commit f181b68a authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

exo: Fix a crash with mus

In mus, the local surface id is allocated during resize an aura::Window.
So we need resize the host_window() first before submitting a frame to
it. Otherwise, exo may submit a frame with an invalid local surace id.

Bug: None
Change-Id: Ie756744073bd4bfb445ae3f596b11257aa85ae9f
Reviewed-on: https://chromium-review.googlesource.com/594550Reviewed-by: default avatarDavid Reveman <reveman@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#490979}
parent 9aad7f8d
......@@ -288,12 +288,12 @@ void SurfaceTreeHost::SubmitCompositorFrame(Surface::FrameType frame_type) {
&frame_callbacks_, &presentation_callbacks_);
frame.render_pass_list.back()->output_rect =
gfx::Rect(root_surface_->content_size());
layer_tree_frame_sink_holder_->frame_sink()->SubmitCompositorFrame(
std::move(frame));
host_window_->SetBounds(gfx::Rect(host_window_->bounds().origin(),
root_surface_->content_size()));
host_window_->layer()->SetFillsBoundsOpaquely(
root_surface_->FillsBoundsOpaquely());
layer_tree_frame_sink_holder_->frame_sink()->SubmitCompositorFrame(
std::move(frame));
if (current_begin_frame_ack_.sequence_number !=
viz::BeginFrameArgs::kInvalidFrameNumber) {
......
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