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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 2731283003: (Reland) Discard compositor frames from unloaded web content (Closed)
Patch Set: Initialize field to zero 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_host_unittest.cc ('k') | cc/trees/layer_tree_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.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 09cd850fd801180228c5337bd2c1bea13c56f586..02c6e994d3d680dbdfe9df53c335b6183ff03d08 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -229,6 +229,9 @@ class CC_EXPORT LayerTreeImpl {
return painted_device_scale_factor_;
}
+ void set_content_source_id(uint32_t id) { content_source_id_ = id; }
+ uint32_t content_source_id() { return content_source_id_; }
+
void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space);
const gfx::ColorSpace& device_color_space() const {
return device_color_space_;
@@ -495,6 +498,8 @@ class CC_EXPORT LayerTreeImpl {
float painted_device_scale_factor_;
gfx::ColorSpace device_color_space_;
+ uint32_t content_source_id_;
+
scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_;
std::unique_ptr<OwnedLayerImplList> layers_;
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698