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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void UpdatePropertyTreeTransformIsAnimated(bool is_animated); | 126 void UpdatePropertyTreeTransformIsAnimated(bool is_animated); |
127 void UpdatePropertyTreeScrollOffset(); | 127 void UpdatePropertyTreeScrollOffset(); |
128 | 128 |
129 // For compatibility with Layer. | 129 // For compatibility with Layer. |
130 bool has_render_surface() const { return !!render_surface(); } | 130 bool has_render_surface() const { return !!render_surface(); } |
131 | 131 |
132 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } | 132 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } |
133 | 133 |
134 void PopulateSharedQuadState(SharedQuadState* state) const; | 134 void PopulateSharedQuadState(SharedQuadState* state) const; |
135 void PopulateScaledSharedQuadState(SharedQuadState* state, float scale) const; | 135 void PopulateScaledSharedQuadState(SharedQuadState* state, float scale) const; |
| 136 void PopulateScaledSharedQuadState(SharedQuadState* state, |
| 137 float scale_x, |
| 138 float scale_y) const; |
136 // WillDraw must be called before AppendQuads. If WillDraw returns false, | 139 // WillDraw must be called before AppendQuads. If WillDraw returns false, |
137 // AppendQuads and DidDraw will not be called. If WillDraw returns true, | 140 // AppendQuads and DidDraw will not be called. If WillDraw returns true, |
138 // DidDraw is guaranteed to be called before another WillDraw or before | 141 // DidDraw is guaranteed to be called before another WillDraw or before |
139 // the layer is destroyed. To enforce this, any class that overrides | 142 // the layer is destroyed. To enforce this, any class that overrides |
140 // WillDraw/DidDraw must call the base class version only if WillDraw | 143 // WillDraw/DidDraw must call the base class version only if WillDraw |
141 // returns true. | 144 // returns true. |
142 virtual bool WillDraw(DrawMode draw_mode, | 145 virtual bool WillDraw(DrawMode draw_mode, |
143 ResourceProvider* resource_provider); | 146 ResourceProvider* resource_provider); |
144 virtual void AppendQuads(RenderPass* render_pass, | 147 virtual void AppendQuads(RenderPass* render_pass, |
145 AppendQuadsData* append_quads_data) {} | 148 AppendQuadsData* append_quads_data) {} |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 bool has_will_change_transform_hint_ : 1; | 577 bool has_will_change_transform_hint_ : 1; |
575 bool needs_push_properties_ : 1; | 578 bool needs_push_properties_ : 1; |
576 bool scrollbars_hidden_ : 1; | 579 bool scrollbars_hidden_ : 1; |
577 | 580 |
578 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 581 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
579 }; | 582 }; |
580 | 583 |
581 } // namespace cc | 584 } // namespace cc |
582 | 585 |
583 #endif // CC_LAYERS_LAYER_IMPL_H_ | 586 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |