Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: components/mus/surfaces/display_compositor.cc

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/surfaces/display_compositor.h ('k') | components/mus/ws/platform_display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/surfaces/display_compositor.cc
diff --git a/components/mus/surfaces/display_compositor.cc b/components/mus/surfaces/display_compositor.cc
index c8f17740c8bb85e9d92bd74af141ee926311b8ce..8ffa0b86276e3ab851c34a1c9f57915d16939e65 100644
--- a/components/mus/surfaces/display_compositor.cc
+++ b/components/mus/surfaces/display_compositor.cc
@@ -81,10 +81,10 @@ DisplayCompositor::~DisplayCompositor() {
}
void DisplayCompositor::SubmitCompositorFrame(
- std::unique_ptr<cc::CompositorFrame> frame,
+ cc::CompositorFrame frame,
const base::Callback<void(cc::SurfaceDrawStatus)>& callback) {
gfx::Size frame_size =
- frame->delegated_frame_data->render_pass_list.back()->output_rect.size();
+ frame.delegated_frame_data->render_pass_list.back()->output_rect.size();
if (frame_size.IsEmpty() || frame_size != display_size_) {
if (!surface_id_.is_null())
factory_.Destroy(surface_id_);
@@ -93,7 +93,7 @@ void DisplayCompositor::SubmitCompositorFrame(
display_size_ = frame_size;
display_->Resize(display_size_);
}
- display_->SetSurfaceId(surface_id_, frame->metadata.device_scale_factor);
+ display_->SetSurfaceId(surface_id_, frame.metadata.device_scale_factor);
factory_.SubmitCompositorFrame(surface_id_, std::move(frame), callback);
}
« no previous file with comments | « components/mus/surfaces/display_compositor.h ('k') | components/mus/ws/platform_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698