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

Unified Diff: content/browser/compositor/mus_browser_compositor_output_surface.cc

Issue 2449853004: Getting rid of DelegatedFrameData (Closed)
Patch Set: nit Created 4 years, 1 month 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 | « content/browser/bad_message.h ('k') | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/mus_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/mus_browser_compositor_output_surface.cc b/content/browser/compositor/mus_browser_compositor_output_surface.cc
index acea5da8602c8255627a6bfc10ac40aa0ce09c50..3a3dcafac376fdd7434d916a73a7a907ffb59c92 100644
--- a/content/browser/compositor/mus_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/mus_browser_compositor_output_surface.cc
@@ -72,7 +72,6 @@ void MusBrowserCompositorOutputSurface::SwapBuffers(
ui_frame.metadata.latency_info = std::move(frame.latency_info);
// Reset latency_info to known empty state after moving contents.
frame.latency_info.clear();
- ui_frame.delegated_frame_data = base::MakeUnique<cc::DelegatedFrameData>();
const cc::RenderPassId render_pass_id(1, 1);
std::unique_ptr<cc::RenderPass> pass = cc::RenderPass::Create();
const bool has_transparent_background = true;
@@ -113,7 +112,7 @@ void MusBrowserCompositorOutputSurface::SwapBuffers(
resource.read_lock_fences_enabled = false;
resource.is_software = false;
resource.is_overlay_candidate = false;
- ui_frame.delegated_frame_data->resource_list.push_back(std::move(resource));
+ ui_frame.resource_list.push_back(std::move(resource));
const bool needs_blending = true;
const bool premultiplied_alpha = true;
@@ -132,7 +131,7 @@ void MusBrowserCompositorOutputSurface::SwapBuffers(
background_color, vertex_opacity, y_flipped, nearest_neighbor,
secure_output_only);
- ui_frame.delegated_frame_data->render_pass_list.push_back(std::move(pass));
+ ui_frame.render_pass_list.push_back(std::move(pass));
// TODO(mfomitchev): Remove ui_compositor_frame_sink_ once we complete the
// switch to Aura-Mus.
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698