| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, | 424 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, |
| 425 gfx::BoxF* bounds) const; | 425 gfx::BoxF* bounds) const; |
| 426 | 426 |
| 427 // Note this rect is in layer space (not content space). | 427 // Note this rect is in layer space (not content space). |
| 428 void SetUpdateRect(const gfx::Rect& update_rect); | 428 void SetUpdateRect(const gfx::Rect& update_rect); |
| 429 const gfx::Rect& update_rect() const { return update_rect_; } | 429 const gfx::Rect& update_rect() const { return update_rect_; } |
| 430 | 430 |
| 431 void AddDamageRect(const gfx::Rect& damage_rect); | 431 void AddDamageRect(const gfx::Rect& damage_rect); |
| 432 const gfx::Rect& damage_rect() const { return damage_rect_; } | 432 const gfx::Rect& damage_rect() const { return damage_rect_; } |
| 433 | 433 |
| 434 virtual base::DictionaryValue* LayerTreeAsJson() const; | 434 virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson() const; |
| 435 | 435 |
| 436 bool LayerPropertyChanged() const; | 436 bool LayerPropertyChanged() const; |
| 437 | 437 |
| 438 void ResetChangeTracking(); | 438 void ResetChangeTracking(); |
| 439 | 439 |
| 440 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; | 440 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; |
| 441 | 441 |
| 442 virtual void DidBecomeActive() {} | 442 virtual void DidBecomeActive() {} |
| 443 | 443 |
| 444 virtual void DidBeginTracing(); | 444 virtual void DidBeginTracing(); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 | 653 |
| 654 bool scrolls_drawn_descendant_; | 654 bool scrolls_drawn_descendant_; |
| 655 bool has_will_change_transform_hint_; | 655 bool has_will_change_transform_hint_; |
| 656 | 656 |
| 657 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 657 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 658 }; | 658 }; |
| 659 | 659 |
| 660 } // namespace cc | 660 } // namespace cc |
| 661 | 661 |
| 662 #endif // CC_LAYERS_LAYER_IMPL_H_ | 662 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |