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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2707243005: Discard compositor frames from unloaded web content (Closed)
Patch Set: Add default value for source ID in frame metadata Created 3 years, 9 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 | « cc/trees/layer_tree_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 90966982ad7c87e371c480c5a2848fc89cd11cb5..f694b09eb3ca73fe23544b5580dfee764a8898f2 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -73,6 +73,7 @@ LayerTreeImpl::LayerTreeImpl(
max_page_scale_factor_(0),
device_scale_factor_(1.f),
painted_device_scale_factor_(1.f),
+ content_source_id_(0),
elastic_overscroll_(elastic_overscroll),
layers_(new OwnedLayerImplList),
viewport_size_invalid_(false),
@@ -487,6 +488,8 @@ void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) {
target_tree->SetDeviceColorSpace(device_color_space_);
target_tree->elastic_overscroll()->PushPendingToActive();
+ target_tree->set_content_source_id(content_source_id());
+
target_tree->pending_page_scale_animation_ =
std::move(pending_page_scale_animation_);
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698