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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2632463005: cc: Ensure that large damage doesn't register as "frame has no damage" (Closed)
Patch Set: 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 14a6ffd138bfc0fe8b56c5fa7c7f949fa56decf4..9203760ca6acf2326d7be826febcf03bf5e32d68 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -773,7 +773,8 @@ DrawResult LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) {
// frame at all.
RenderSurfaceImpl* root_surface = active_tree_->RootRenderSurface();
bool root_surface_has_no_visible_damage =
- !root_surface->damage_tracker()->current_damage_rect().Intersects(
+ !root_surface->damage_tracker()->ShouldDamageEverything() &&
+ !root_surface->damage_tracker()->CurrentDamageRect().Intersects(
root_surface->content_rect());
bool root_surface_has_contributing_layers =
!root_surface->layer_list().empty();

Powered by Google App Engine
This is Rietveld 408576698