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

Unified Diff: content/renderer/child_frame_compositing_helper.cc

Issue 554823002: ChildFrameCompositingHelper: Reset buffer size when frame arrives from a new RenderView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/child_frame_compositing_helper.cc
diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
index d5dbc5be9c2b52ebf1f020126451c0fcfba3df2f..237badcc3f0104a4ade09533f6e5428f916812bf 100644
--- a/content/renderer/child_frame_compositing_helper.cc
+++ b/content/renderer/child_frame_compositing_helper.cc
@@ -491,6 +491,7 @@ void ChildFrameCompositingHelper::OnCompositorFrameSwapped(
delegated_layer_ =
cc::DelegatedRendererLayer::Create(frame_provider_.get());
delegated_layer_->SetIsDrawable(true);
+ buffer_size_ = gfx::Size();
SetContentsOpaque(opaque_);
background_layer_->AddChild(delegated_layer_);
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698