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

Unified Diff: cc/layers/layer.cc

Issue 2776473002: Build property trees for the HUD layer when using layer lists (Closed)
Patch Set: 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
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 223fc65c0c1b7f3d295d643ee26d871de324e14f..b33473298bdc060917721e83c3daacb6acb0e5e7 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -17,6 +17,7 @@
#include "base/trace_event/trace_event.h"
#include "cc/base/simple_enclosed_region.h"
#include "cc/input/main_thread_scrolling_reason.h"
+#include "cc/layers/heads_up_display_layer.h"
#include "cc/layers/layer_client.h"
#include "cc/layers/layer_impl.h"
#include "cc/layers/scrollbar_layer_interface.h"
@@ -1304,6 +1305,18 @@ void Layer::SetScrollbarsHiddenFromImplSide(bool hidden) {
inputs_.client->didChangeScrollbarsHidden(hidden);
}
+void Layer::copyPropertyTreeStateTo(HeadsUpDisplayLayer* hud_layer) const {
+ // When not using layer lists the hud layer's properties should be built by
+ // PropertyTreeBuilder.
+ DCHECK(layer_tree_host_->GetSettings().use_layer_lists);
+
+ hud_layer->SetTransformTreeIndex(transform_tree_index_);
+ hud_layer->SetEffectTreeIndex(effect_tree_index_);
+ hud_layer->SetClipTreeIndex(clip_tree_index_);
+ hud_layer->SetScrollTreeIndex(scroll_tree_index_);
+ hud_layer->set_property_tree_sequence_number(property_tree_sequence_number_);
+}
+
bool Layer::FilterIsAnimating() const {
return GetMutatorHost()->IsAnimatingFilterProperty(
element_id(), GetElementTypeForAnimation());
« cc/layers/layer.h ('K') | « cc/layers/layer.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698