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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 379473002: Rename composited selection anchor/focus to start/end (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test Created 6 years, 5 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.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 48f4864ef4a14e903aba2665fa85a989f725ea8a..18c5c37f9d718a1e57592182f8977163e75ada10 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -320,7 +320,7 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) {
sync_tree->ClearViewportLayers();
}
- sync_tree->RegisterSelection(selection_anchor_, selection_focus_);
+ sync_tree->RegisterSelection(selection_start_, selection_end_);
float page_scale_delta =
sync_tree->page_scale_delta() / sync_tree->sent_page_scale_delta();
@@ -1228,13 +1228,13 @@ void LayerTreeHost::RegisterViewportLayers(
outer_viewport_scroll_layer_ = outer_viewport_scroll_layer;
}
-void LayerTreeHost::RegisterSelection(const LayerSelectionBound& anchor,
- const LayerSelectionBound& focus) {
- if (selection_anchor_ == anchor && selection_focus_ == focus)
+void LayerTreeHost::RegisterSelection(const LayerSelectionBound& start,
+ const LayerSelectionBound& end) {
+ if (selection_start_ == start && selection_end_ == end)
return;
- selection_anchor_ = anchor;
- selection_focus_ = focus;
+ selection_start_ = start;
+ selection_end_ = end;
SetNeedsCommit();
}
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698