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

Unified Diff: cc/layers/layer.cc

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +will-change Created 4 years, 7 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
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 88f2036fc8038144880d9942efe97e02a48f7b59..85459e6de06c34faec2cc43fbca27ee977b40c1d 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -89,7 +89,8 @@ Layer::Layer()
clip_parent_(nullptr),
replica_layer_(nullptr),
client_(nullptr),
- num_unclipped_descendants_(0) {}
+ num_unclipped_descendants_(0),
+ has_will_change_transform_hint_(false) {}
Layer::~Layer() {
// Our parent should be holding a reference to us so there should be no
@@ -1210,6 +1211,8 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
update_rect_.Union(layer->update_rect());
layer->SetUpdateRect(update_rect_);
+ layer->set_has_will_change_transform_hint(has_will_change_transform_hint());
+
// Reset any state that should be cleared for the next update.
subtree_property_changed_ = false;
update_rect_ = gfx::Rect();

Powered by Google App Engine
This is Rietveld 408576698