Chromium Code Reviews| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 bool LayerPropertyChanged() const; | 346 bool LayerPropertyChanged() const; |
| 347 bool LayerPropertyChangedOnly() const; | |
|
vmpstr
2017/07/13 18:01:02
This looks a bit awkward. Maybe LayerPropertyChang
wutao
2017/07/14 00:02:53
I am a little worry that there are 45 references t
| |
| 347 | 348 |
| 348 void ResetChangeTracking(); | 349 void ResetChangeTracking(); |
| 349 | 350 |
| 350 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; | 351 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; |
| 351 | 352 |
| 352 virtual void DidBecomeActive() {} | 353 virtual void DidBecomeActive() {} |
| 353 | 354 |
| 354 virtual void DidBeginTracing(); | 355 virtual void DidBeginTracing(); |
| 355 | 356 |
| 356 // Release resources held by this layer. Called when the output surface | 357 // 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; | 565 bool raster_even_if_not_drawn_ : 1; |
| 565 | 566 |
| 566 bool has_transform_node_ : 1; | 567 bool has_transform_node_ : 1; |
| 567 | 568 |
| 568 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 569 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 569 }; | 570 }; |
| 570 | 571 |
| 571 } // namespace cc | 572 } // namespace cc |
| 572 | 573 |
| 573 #endif // CC_LAYERS_LAYER_IMPL_H_ | 574 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |