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

Side by Side Diff: cc/layers/render_surface_impl.cc

Issue 2861593004: Replace three callsites to LayerImpl::GetRenderSurface with effect tree calls. (Closed)
Patch Set: Created 3 years, 7 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 | « cc/layers/render_surface_impl.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
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/layers/render_surface_impl.h" 5 #include "cc/layers/render_surface_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return ancestor_property_changed_ || property_trees->full_tree_damaged || 334 return ancestor_property_changed_ || property_trees->full_tree_damaged ||
335 property_trees->transform_tree.Node(TransformTreeIndex()) 335 property_trees->transform_tree.Node(TransformTreeIndex())
336 ->transform_changed || 336 ->transform_changed ||
337 property_trees->effect_tree.Node(EffectTreeIndex())->effect_changed; 337 property_trees->effect_tree.Node(EffectTreeIndex())->effect_changed;
338 } 338 }
339 339
340 void RenderSurfaceImpl::NoteAncestorPropertyChanged() { 340 void RenderSurfaceImpl::NoteAncestorPropertyChanged() {
341 ancestor_property_changed_ = true; 341 ancestor_property_changed_ = true;
342 } 342 }
343 343
344 gfx::Rect RenderSurfaceImpl::GetDamageRect() { 344 gfx::Rect RenderSurfaceImpl::GetDamageRect() const {
345 gfx::Rect damage_rect; 345 gfx::Rect damage_rect;
346 bool is_valid_rect = damage_tracker_->GetDamageRectIfValid(&damage_rect); 346 bool is_valid_rect = damage_tracker_->GetDamageRectIfValid(&damage_rect);
347 if (!is_valid_rect) 347 if (!is_valid_rect)
348 return content_rect(); 348 return content_rect();
349 return damage_rect; 349 return damage_rect;
350 } 350 }
351 351
352 void RenderSurfaceImpl::ResetPropertyChangedFlags() { 352 void RenderSurfaceImpl::ResetPropertyChangedFlags() {
353 surface_property_changed_ = false; 353 surface_property_changed_ = false;
354 ancestor_property_changed_ = false; 354 ancestor_property_changed_ = false;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 NOTIMPLEMENTED(); 539 NOTIMPLEMENTED();
540 break; 540 break;
541 default: 541 default:
542 NOTREACHED(); 542 NOTREACHED();
543 break; 543 break;
544 } 544 }
545 } 545 }
546 } 546 }
547 547
548 } // namespace cc 548 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/render_surface_impl.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698