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

Unified Diff: components/exo/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 | « cc/trees/layer_tree_host_unittest_context.cc ('k') | components/exo/surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index eda22743a678d08f7d042eeeff16d8bfefd0286d..5edc802f9635be0168c30c9bf197969867378ace 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -811,8 +811,7 @@ void Surface::UpdateSurface(bool full_damage) {
quad_state->visible_quad_layer_rect = quad_rect;
quad_state->opacity = state_.alpha;
- std::unique_ptr<cc::DelegatedFrameData> delegated_frame(
- new cc::DelegatedFrameData);
+ cc::CompositorFrame frame;
if (current_resource_.id) {
// Texture quad is only needed if buffer is not fully transparent.
if (state_.alpha) {
@@ -833,7 +832,7 @@ void Surface::UpdateSurface(bool full_damage) {
false, false, state_.only_visible_on_secure_output);
if (current_resource_.is_overlay_candidate)
texture_quad->set_resource_size_in_pixels(current_resource_.size);
- delegated_frame->resource_list.push_back(current_resource_);
+ frame.resource_list.push_back(current_resource_);
}
} else {
cc::SolidColorDrawQuad* solid_quad =
@@ -841,9 +840,7 @@ void Surface::UpdateSurface(bool full_damage) {
solid_quad->SetNew(quad_state, quad_rect, quad_rect, SK_ColorBLACK, false);
}
- delegated_frame->render_pass_list.push_back(std::move(render_pass));
- cc::CompositorFrame frame;
- frame.delegated_frame_data = std::move(delegated_frame);
+ frame.render_pass_list.push_back(std::move(render_pass));
factory_owner_->surface_factory_->SubmitCompositorFrame(
local_frame_id_, std::move(frame), cc::SurfaceFactory::DrawCallback());
« no previous file with comments | « cc/trees/layer_tree_host_unittest_context.cc ('k') | components/exo/surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698