| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |