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

Unified Diff: cc/layers/layer.cc

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 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 2c2bb97f40ba055cdca1d6c2c2c92f79a57e94bd..7e3d9ef11f4471259931dfad312c88f55c83880c 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -59,6 +59,7 @@ Layer::Inputs::Inputs(int layer_id)
main_thread_scrolling_reasons(
MainThreadScrollingReason::kNotScrollingOnMain),
is_container_for_fixed_position_layers(false),
+ element_id(kInvalidElementId),
mutable_properties(MutableProperty::kNone),
scroll_parent(nullptr),
clip_parent(nullptr),
@@ -1427,7 +1428,7 @@ void Layer::SetElementId(ElementId id) {
if (inputs_.element_id == id)
return;
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("compositor-worker"),
- "Layer::SetElementId", "element", id.AsValue().release());
+ "Layer::SetElementId", "element", id);
if (inputs_.element_id && layer_tree_host()) {
layer_tree_host_->UnregisterElement(inputs_.element_id,
ElementListType::ACTIVE, this);

Powered by Google App Engine
This is Rietveld 408576698