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

Unified Diff: android_webview/browser/surfaces_instance.cc

Issue 2503203002: Revert "Getting rid of DelegatedFrameData" (Closed)
Patch Set: 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 | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/test/rendering_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/surfaces_instance.cc
diff --git a/android_webview/browser/surfaces_instance.cc b/android_webview/browser/surfaces_instance.cc
index 2803531ca5e4871dfef9bd99701f761888896aa7..0787b9684262997e4575197f4700dff31c048003 100644
--- a/android_webview/browser/surfaces_instance.cc
+++ b/android_webview/browser/surfaces_instance.cc
@@ -132,8 +132,11 @@ void SurfacesInstance::DrawAndSwap(const gfx::Size& viewport,
surface_quad->SetNew(quad_state, gfx::Rect(quad_state->quad_layer_bounds),
gfx::Rect(quad_state->quad_layer_bounds), child_id);
+ std::unique_ptr<cc::DelegatedFrameData> delegated_frame(
+ new cc::DelegatedFrameData);
+ delegated_frame->render_pass_list.push_back(std::move(render_pass));
cc::CompositorFrame frame;
- frame.render_pass_list.push_back(std::move(render_pass));
+ frame.delegated_frame_data = std::move(delegated_frame);
frame.metadata.referenced_surfaces = child_ids_;
if (!root_id_.is_valid()) {
@@ -166,6 +169,8 @@ void SurfacesInstance::RemoveChildId(const cc::SurfaceId& child_id) {
void SurfacesInstance::SetEmptyRootFrame() {
cc::CompositorFrame empty_frame;
+ empty_frame.delegated_frame_data =
+ base::WrapUnique(new cc::DelegatedFrameData);
empty_frame.metadata.referenced_surfaces = child_ids_;
surface_factory_->SubmitCompositorFrame(root_id_, std::move(empty_frame),
cc::SurfaceFactory::DrawCallback());
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/test/rendering_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698