| 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 #ifndef CC_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 // Note this rect is in layer space (not content space). | 337 // Note this rect is in layer space (not content space). |
| 338 void SetUpdateRect(const gfx::Rect& update_rect); | 338 void SetUpdateRect(const gfx::Rect& update_rect); |
| 339 const gfx::Rect& update_rect() const { return update_rect_; } | 339 const gfx::Rect& update_rect() const { return update_rect_; } |
| 340 | 340 |
| 341 void AddDamageRect(const gfx::Rect& damage_rect); | 341 void AddDamageRect(const gfx::Rect& damage_rect); |
| 342 const gfx::Rect& damage_rect() const { return damage_rect_; } | 342 const gfx::Rect& damage_rect() const { return damage_rect_; } |
| 343 | 343 |
| 344 virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson(); | 344 virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson(); |
| 345 | 345 |
| 346 // This includes |layer_property_changed_| and property_trees changes. |
| 346 bool LayerPropertyChanged() const; | 347 bool LayerPropertyChanged() const; |
| 348 // Only checks |layer_property_changed_|. Used in damage_tracker to determine |
| 349 // if there is a contributing content damage not from property_trees changes |
| 350 // in animaiton. |
| 351 bool LayerPropertyChangedNotFromPropertyTrees() const; |
| 347 | 352 |
| 348 void ResetChangeTracking(); | 353 void ResetChangeTracking(); |
| 349 | 354 |
| 350 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; | 355 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; |
| 351 | 356 |
| 352 virtual void DidBecomeActive() {} | 357 virtual void DidBecomeActive() {} |
| 353 | 358 |
| 354 virtual void DidBeginTracing(); | 359 virtual void DidBeginTracing(); |
| 355 | 360 |
| 356 // Release resources held by this layer. Called when the output surface | 361 // Release resources held by this layer. Called when the output surface |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 bool raster_even_if_not_drawn_ : 1; | 569 bool raster_even_if_not_drawn_ : 1; |
| 565 | 570 |
| 566 bool has_transform_node_ : 1; | 571 bool has_transform_node_ : 1; |
| 567 | 572 |
| 568 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 573 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 569 }; | 574 }; |
| 570 | 575 |
| 571 } // namespace cc | 576 } // namespace cc |
| 572 | 577 |
| 573 #endif // CC_LAYERS_LAYER_IMPL_H_ | 578 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |