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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 | 161 |
162 bool has_mask() const { return mask_layer_; } | 162 bool has_mask() const { return mask_layer_; } |
163 bool has_replica() const { return replica_layer_; } | 163 bool has_replica() const { return replica_layer_; } |
164 bool replica_has_mask() const { | 164 bool replica_has_mask() const { |
165 return replica_layer_ && (mask_layer_ || replica_layer_->mask_layer_); | 165 return replica_layer_ && (mask_layer_ || replica_layer_->mask_layer_); |
166 } | 166 } |
167 | 167 |
168 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } | 168 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } |
169 | 169 |
170 void PopulateSharedQuadState(SharedQuadState* state) const; | 170 void PopulateSharedQuadState(SharedQuadState* state) const; |
171 void PopulateSharedQuadStateWithOverrides( | |
enne (OOO)
2014/05/20 17:48:09
Just stick this function on PictureLayerImpl since
sohanjg
2014/05/21 10:32:38
Done.
| |
172 SharedQuadState* state, | |
173 gfx::Transform target_space_transform, | |
174 gfx::Size content_bounds, | |
175 gfx::Rect visible_content_rect) const; | |
171 // WillDraw must be called before AppendQuads. If WillDraw returns false, | 176 // WillDraw must be called before AppendQuads. If WillDraw returns false, |
172 // AppendQuads and DidDraw will not be called. If WillDraw returns true, | 177 // AppendQuads and DidDraw will not be called. If WillDraw returns true, |
173 // DidDraw is guaranteed to be called before another WillDraw or before | 178 // DidDraw is guaranteed to be called before another WillDraw or before |
174 // the layer is destroyed. To enforce this, any class that overrides | 179 // the layer is destroyed. To enforce this, any class that overrides |
175 // WillDraw/DidDraw must call the base class version only if WillDraw | 180 // WillDraw/DidDraw must call the base class version only if WillDraw |
176 // returns true. | 181 // returns true. |
177 virtual bool WillDraw(DrawMode draw_mode, | 182 virtual bool WillDraw(DrawMode draw_mode, |
178 ResourceProvider* resource_provider); | 183 ResourceProvider* resource_provider); |
179 virtual void AppendQuads(QuadSink* quad_sink, | 184 virtual void AppendQuads(QuadSink* quad_sink, |
180 AppendQuadsData* append_quads_data) {} | 185 AppendQuadsData* append_quads_data) {} |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
693 DrawProperties<LayerImpl> draw_properties_; | 698 DrawProperties<LayerImpl> draw_properties_; |
694 | 699 |
695 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 700 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
696 | 701 |
697 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 702 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
698 }; | 703 }; |
699 | 704 |
700 } // namespace cc | 705 } // namespace cc |
701 | 706 |
702 #endif // CC_LAYERS_LAYER_IMPL_H_ | 707 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |