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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 // Verify that the resource ids in the quad are valid. | 160 // Verify that the resource ids in the quad are valid. |
161 void ValidateQuadResources(DrawQuad* quad) const { | 161 void ValidateQuadResources(DrawQuad* quad) const { |
162 #if DCHECK_IS_ON() | 162 #if DCHECK_IS_ON() |
163 ValidateQuadResourcesInternal(quad); | 163 ValidateQuadResourcesInternal(quad); |
164 #endif | 164 #endif |
165 } | 165 } |
166 | 166 |
167 virtual void GetContentsResourceId(ResourceId* resource_id, | 167 virtual void GetContentsResourceId(ResourceId* resource_id, |
168 gfx::Size* resource_size) const; | 168 gfx::Size* resource_size) const; |
169 | |
170 virtual void NotifyTileStateChanged(const Tile* tile) {} | 169 virtual void NotifyTileStateChanged(const Tile* tile) {} |
171 | 170 |
172 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 171 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
173 | 172 |
174 // Returns true if this layer has content to draw. | 173 // Returns true if this layer has content to draw. |
175 void SetDrawsContent(bool draws_content); | 174 void SetDrawsContent(bool draws_content); |
176 bool DrawsContent() const { return draws_content_; } | 175 bool DrawsContent() const { return draws_content_; } |
177 | 176 |
178 LayerImplTestProperties* test_properties() { | 177 LayerImplTestProperties* test_properties() { |
179 if (!test_properties_) | 178 if (!test_properties_) |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 bool scrolls_drawn_descendant_ : 1; | 571 bool scrolls_drawn_descendant_ : 1; |
573 bool has_will_change_transform_hint_ : 1; | 572 bool has_will_change_transform_hint_ : 1; |
574 bool needs_push_properties_ : 1; | 573 bool needs_push_properties_ : 1; |
575 | 574 |
576 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 575 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
577 }; | 576 }; |
578 | 577 |
579 } // namespace cc | 578 } // namespace cc |
580 | 579 |
581 #endif // CC_LAYERS_LAYER_IMPL_H_ | 580 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |