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

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

Issue 650533004: Reset DelegatedFrameHost SurfaceFactory when output_surface_id changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/browser/compositor/delegated_frame_host.cc
diff --git a/content/browser/compositor/delegated_frame_host.cc b/content/browser/compositor/delegated_frame_host.cc
index 7f3961b69696f9ee1eb4b2215f0b00f3e8e7aa7c..ccf962abd6644b36eb1d6baa1428a75910b148c8 100644
--- a/content/browser/compositor/delegated_frame_host.cc
+++ b/content/browser/compositor/delegated_frame_host.cc
@@ -349,6 +349,10 @@ void DelegatedFrameHost::SwapDelegatedFrame(
// the DelegatedRendererLayer.
EvictDelegatedFrame();
+ surface_factory_.reset();
+ if (!surface_returned_resources_.empty())
+ SendReturnedDelegatedResources(last_output_surface_id_);
+
// Drop the cc::DelegatedFrameResourceCollection so that we will not return
// any resources from the old output surface with the new output surface id.
if (resource_collection_.get()) {
« 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