Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 | 39 |
| 40 namespace base { | 40 namespace base { |
| 41 namespace trace_event { | 41 namespace trace_event { |
| 42 class ConvertableToTraceFormat; | 42 class ConvertableToTraceFormat; |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace cc { | 46 namespace cc { |
| 47 | 47 |
| 48 class CopyOutputRequest; | 48 class CopyOutputRequest; |
| 49 class HeadsUpDisplayLayer; | |
| 49 class LayerClient; | 50 class LayerClient; |
| 50 class LayerImpl; | 51 class LayerImpl; |
| 51 class LayerTreeHost; | 52 class LayerTreeHost; |
| 52 class LayerTreeHostCommon; | 53 class LayerTreeHostCommon; |
| 53 class LayerTreeImpl; | 54 class LayerTreeImpl; |
| 54 class MutatorHost; | 55 class MutatorHost; |
| 55 class ScrollbarLayerInterface; | 56 class ScrollbarLayerInterface; |
| 56 | 57 |
| 57 // Base class for composited layers. Special layer types are derived from | 58 // Base class for composited layers. Special layer types are derived from |
| 58 // this class. | 59 // this class. |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 430 ElementListType GetElementTypeForAnimation() const; | 431 ElementListType GetElementTypeForAnimation() const; |
| 431 | 432 |
| 432 void SetScrollbarsHiddenFromImplSide(bool hidden); | 433 void SetScrollbarsHiddenFromImplSide(bool hidden); |
| 433 | 434 |
| 434 void set_is_scroll_clip_layer() { is_scroll_clip_layer_ = true; } | 435 void set_is_scroll_clip_layer() { is_scroll_clip_layer_ = true; } |
| 435 | 436 |
| 436 const gfx::Rect& update_rect() const { return inputs_.update_rect; } | 437 const gfx::Rect& update_rect() const { return inputs_.update_rect; } |
| 437 | 438 |
| 438 LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } | 439 LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } |
| 439 | 440 |
| 441 void copyPropertyTreeStateTo(HeadsUpDisplayLayer* hud_layer) const; | |
|
ajuma
2017/03/23 17:41:27
not-blink-nit: Upper-case c :)
At a higher level,
| |
| 442 | |
| 440 protected: | 443 protected: |
| 441 friend class LayerImpl; | 444 friend class LayerImpl; |
| 442 friend class TreeSynchronizer; | 445 friend class TreeSynchronizer; |
| 443 virtual ~Layer(); | 446 virtual ~Layer(); |
| 444 Layer(); | 447 Layer(); |
| 445 | 448 |
| 446 // These SetNeeds functions are in order of severity of update: | 449 // These SetNeeds functions are in order of severity of update: |
| 447 // | 450 // |
| 448 // Called when a property has been modified in a way that the layer knows | 451 // Called when a property has been modified in a way that the layer knows |
| 449 // immediately that a commit is required. This implies SetNeedsPushProperties | 452 // immediately that a commit is required. This implies SetNeedsPushProperties |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 648 // These all act like draw properties, so don't need push properties. | 651 // These all act like draw properties, so don't need push properties. |
| 649 gfx::Rect visible_layer_rect_; | 652 gfx::Rect visible_layer_rect_; |
| 650 size_t num_unclipped_descendants_; | 653 size_t num_unclipped_descendants_; |
| 651 | 654 |
| 652 DISALLOW_COPY_AND_ASSIGN(Layer); | 655 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 653 }; | 656 }; |
| 654 | 657 |
| 655 } // namespace cc | 658 } // namespace cc |
| 656 | 659 |
| 657 #endif // CC_LAYERS_LAYER_H_ | 660 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |