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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2615773003: Replace LayerImpl::sorting_context_id with transform reference. (Closed)
Patch Set: Update tests. Created 3 years, 11 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/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 9d4773d5fe03fc06f31bd29c16797b7903477593..58351e92ca84f10f88c3ae27eccc5b4907586f5d 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1887,8 +1887,8 @@ static void FindClosestMatchingLayer(const gfx::PointF& screen_space_point,
bool in_front_of_previous_candidate =
state->closest_match &&
- layer->sorting_context_id() ==
- state->closest_match->sorting_context_id() &&
+ layer->GetSortingContextId() ==
+ state->closest_match->GetSortingContextId() &&
distance_to_intersection >
state->closest_distance + std::numeric_limits<float>::epsilon();

Powered by Google App Engine
This is Rietveld 408576698