| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 namespace cc { | 52 namespace cc { |
| 53 | 53 |
| 54 class LayerTreeImpl; | 54 class LayerTreeImpl; |
| 55 class MicroBenchmarkImpl; | 55 class MicroBenchmarkImpl; |
| 56 class MutatorHost; | 56 class MutatorHost; |
| 57 class PrioritizedTile; | 57 class PrioritizedTile; |
| 58 class RenderPass; | 58 class RenderPass; |
| 59 class ScrollbarLayerImplBase; | 59 class ScrollbarLayerImplBase; |
| 60 class SimpleEnclosedRegion; | 60 class SimpleEnclosedRegion; |
| 61 class Tile; | 61 class Tile; |
| 62 class ScrollState; | |
| 63 | 62 |
| 64 struct AppendQuadsData; | 63 struct AppendQuadsData; |
| 65 | 64 |
| 66 enum DrawMode { | 65 enum DrawMode { |
| 67 DRAW_MODE_NONE, | 66 DRAW_MODE_NONE, |
| 68 DRAW_MODE_HARDWARE, | 67 DRAW_MODE_HARDWARE, |
| 69 DRAW_MODE_SOFTWARE, | 68 DRAW_MODE_SOFTWARE, |
| 70 DRAW_MODE_RESOURCELESS_SOFTWARE | 69 DRAW_MODE_RESOURCELESS_SOFTWARE |
| 71 }; | 70 }; |
| 72 | 71 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 83 virtual ~LayerImpl(); | 82 virtual ~LayerImpl(); |
| 84 | 83 |
| 85 int id() const { return layer_id_; } | 84 int id() const { return layer_id_; } |
| 86 | 85 |
| 87 // Interactions with attached animations. | 86 // Interactions with attached animations. |
| 88 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 87 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 89 void OnIsAnimatingChanged(const PropertyAnimationState& mask, | 88 void OnIsAnimatingChanged(const PropertyAnimationState& mask, |
| 90 const PropertyAnimationState& state); | 89 const PropertyAnimationState& state); |
| 91 bool IsActive() const; | 90 bool IsActive() const; |
| 92 | 91 |
| 93 void DistributeScroll(ScrollState* scroll_state); | |
| 94 | |
| 95 void set_property_tree_sequence_number(int sequence_number) {} | 92 void set_property_tree_sequence_number(int sequence_number) {} |
| 96 | 93 |
| 97 void SetTransformTreeIndex(int index); | 94 void SetTransformTreeIndex(int index); |
| 98 int transform_tree_index() const { return transform_tree_index_; } | 95 int transform_tree_index() const { return transform_tree_index_; } |
| 99 | 96 |
| 100 void SetClipTreeIndex(int index); | 97 void SetClipTreeIndex(int index); |
| 101 int clip_tree_index() const { return clip_tree_index_; } | 98 int clip_tree_index() const { return clip_tree_index_; } |
| 102 | 99 |
| 103 void SetEffectTreeIndex(int index); | 100 void SetEffectTreeIndex(int index); |
| 104 int effect_tree_index() const { return effect_tree_index_; } | 101 int effect_tree_index() const { return effect_tree_index_; } |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 bool has_will_change_transform_hint_ : 1; | 575 bool has_will_change_transform_hint_ : 1; |
| 579 bool needs_push_properties_ : 1; | 576 bool needs_push_properties_ : 1; |
| 580 bool scrollbars_hidden_ : 1; | 577 bool scrollbars_hidden_ : 1; |
| 581 | 578 |
| 582 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 579 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 583 }; | 580 }; |
| 584 | 581 |
| 585 } // namespace cc | 582 } // namespace cc |
| 586 | 583 |
| 587 #endif // CC_LAYERS_LAYER_IMPL_H_ | 584 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |