| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 virtual void DidDraw(ResourceProvider* resource_provider); | 136 virtual void DidDraw(ResourceProvider* resource_provider); |
| 137 | 137 |
| 138 // Verify that the resource ids in the quad are valid. | 138 // Verify that the resource ids in the quad are valid. |
| 139 void ValidateQuadResources(DrawQuad* quad) const { | 139 void ValidateQuadResources(DrawQuad* quad) const { |
| 140 #if DCHECK_IS_ON() | 140 #if DCHECK_IS_ON() |
| 141 ValidateQuadResourcesInternal(quad); | 141 ValidateQuadResourcesInternal(quad); |
| 142 #endif | 142 #endif |
| 143 } | 143 } |
| 144 | 144 |
| 145 virtual void GetContentsResourceId(ResourceId* resource_id, | 145 virtual void GetContentsResourceId(ResourceId* resource_id, |
| 146 gfx::Size* resource_size) const; | 146 gfx::Size* resource_size, |
| 147 gfx::SizeF* resource_uv_size) const; |
| 147 | 148 |
| 148 virtual void NotifyTileStateChanged(const Tile* tile) {} | 149 virtual void NotifyTileStateChanged(const Tile* tile) {} |
| 149 | 150 |
| 150 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 151 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
| 151 | 152 |
| 152 // Returns true if this layer has content to draw. | 153 // Returns true if this layer has content to draw. |
| 153 void SetDrawsContent(bool draws_content); | 154 void SetDrawsContent(bool draws_content); |
| 154 bool DrawsContent() const { return draws_content_; } | 155 bool DrawsContent() const { return draws_content_; } |
| 155 | 156 |
| 156 LayerImplTestProperties* test_properties() { | 157 LayerImplTestProperties* test_properties() { |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 bool needs_show_scrollbars_ : 1; | 558 bool needs_show_scrollbars_ : 1; |
| 558 | 559 |
| 559 bool raster_even_if_not_in_rsll_ : 1; | 560 bool raster_even_if_not_in_rsll_ : 1; |
| 560 | 561 |
| 561 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 562 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 562 }; | 563 }; |
| 563 | 564 |
| 564 } // namespace cc | 565 } // namespace cc |
| 565 | 566 |
| 566 #endif // CC_LAYERS_LAYER_IMPL_H_ | 567 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |