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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format 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_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index f4ce94d2bd4be5f8189366801b9704f29dc308c9..ccb83023fec826d67fd68f9922a40c92bee38edc 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -775,10 +775,17 @@ DrawResult LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) {
active_tree_->hud_layer()->IsAnimatingHUDContents();
bool must_always_swap =
compositor_frame_sink_->capabilities().must_always_swap;
+ // When touch handle visibility changes there is no visible damage
+ // because touch handles are composited in the browser. However we
+ // still want the browser to be notified that the handles changed
+ // through the |ViewHostMsg_SwapCompositorFrame| IPC so we keep
+ // track of handle visibility changes through |handle_visibility_changed|.
+ bool handle_visibility_changed =
+ active_tree_->GetAndResetHandleVisibilityChanged();
if (root_surface_has_contributing_layers &&
root_surface_has_no_visible_damage &&
!active_tree_->property_trees()->effect_tree.HasCopyRequests() &&
- !must_always_swap && !hud_wants_to_draw_) {
+ !must_always_swap && !hud_wants_to_draw_ && !handle_visibility_changed) {
TRACE_EVENT0("cc",
"LayerTreeHostImpl::CalculateRenderPasses::EmptyDamageRect");
frame->has_no_damage = true;
« no previous file with comments | « no previous file | cc/trees/layer_tree_impl.h » ('j') | third_party/WebKit/Source/core/editing/SelectionController.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698