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

Side by Side 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: default handle visibility should be false Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree_impl.h » ('j') | cc/trees/layer_tree_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 !root_surface->damage_tracker()->current_damage_rect().Intersects( 794 !root_surface->damage_tracker()->current_damage_rect().Intersects(
795 root_surface->content_rect()); 795 root_surface->content_rect());
796 bool root_surface_has_contributing_layers = 796 bool root_surface_has_contributing_layers =
797 !root_surface->layer_list().empty(); 797 !root_surface->layer_list().empty();
798 bool hud_wants_to_draw_ = active_tree_->hud_layer() && 798 bool hud_wants_to_draw_ = active_tree_->hud_layer() &&
799 active_tree_->hud_layer()->IsAnimatingHUDContents(); 799 active_tree_->hud_layer()->IsAnimatingHUDContents();
800 if (root_surface_has_contributing_layers && 800 if (root_surface_has_contributing_layers &&
801 root_surface_has_no_visible_damage && 801 root_surface_has_no_visible_damage &&
802 !active_tree_->property_trees()->effect_tree.HasCopyRequests() && 802 !active_tree_->property_trees()->effect_tree.HasCopyRequests() &&
803 !output_surface_->capabilities().can_force_reclaim_resources && 803 !output_surface_->capabilities().can_force_reclaim_resources &&
804 !hud_wants_to_draw_) { 804 !hud_wants_to_draw_ && !active_tree_->SelectionChanged()) {
805 TRACE_EVENT0("cc", 805 TRACE_EVENT0("cc",
806 "LayerTreeHostImpl::CalculateRenderPasses::EmptyDamageRect"); 806 "LayerTreeHostImpl::CalculateRenderPasses::EmptyDamageRect");
807 frame->has_no_damage = true; 807 frame->has_no_damage = true;
808 DCHECK(!resourceless_software_draw_); 808 DCHECK(!resourceless_software_draw_);
809 return DRAW_SUCCESS; 809 return DRAW_SUCCESS;
810 } 810 }
811 811
812 TRACE_EVENT_BEGIN2( 812 TRACE_EVENT_BEGIN2(
813 "cc", "LayerTreeHostImpl::CalculateRenderPasses", 813 "cc", "LayerTreeHostImpl::CalculateRenderPasses",
814 "render_surface_layer_list.size()", 814 "render_surface_layer_list.size()",
(...skipping 3227 matching lines...) Expand 10 before | Expand all | Expand 10 after
4042 return task_runner_provider_->HasImplThread(); 4042 return task_runner_provider_->HasImplThread();
4043 } 4043 }
4044 4044
4045 bool LayerTreeHostImpl::CommitToActiveTree() const { 4045 bool LayerTreeHostImpl::CommitToActiveTree() const {
4046 // In single threaded mode we skip the pending tree and commit directly to the 4046 // In single threaded mode we skip the pending tree and commit directly to the
4047 // active tree. 4047 // active tree.
4048 return !task_runner_provider_->HasImplThread(); 4048 return !task_runner_provider_->HasImplThread();
4049 } 4049 }
4050 4050
4051 } // namespace cc 4051 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_impl.h » ('j') | cc/trees/layer_tree_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698