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_TILED_LAYER_H_ | 5 #ifndef CC_LAYERS_TILED_LAYER_H_ |
6 #define CC_LAYERS_TILED_LAYER_H_ | 6 #define CC_LAYERS_TILED_LAYER_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/layers/contents_scaling_layer.h" | 9 #include "cc/layers/contents_scaling_layer.h" |
10 #include "cc/resources/layer_tiling_data.h" | 10 #include "cc/resources/layer_tiling_data.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 }; | 25 }; |
26 | 26 |
27 // Layer implementation. | 27 // Layer implementation. |
28 virtual void SetIsMask(bool is_mask) OVERRIDE; | 28 virtual void SetIsMask(bool is_mask) OVERRIDE; |
29 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 29 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
30 virtual void ReduceMemoryUsage() OVERRIDE; | 30 virtual void ReduceMemoryUsage() OVERRIDE; |
31 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; | 31 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; |
32 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; | 32 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; |
33 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) | 33 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) |
34 OVERRIDE; | 34 OVERRIDE; |
35 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; | 35 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const OVERRIDE; |
36 virtual bool Update(ResourceUpdateQueue* queue, | 36 virtual bool Update(ResourceUpdateQueue* queue, |
37 const OcclusionTracker<Layer>* occlusion) OVERRIDE; | 37 const OcclusionTracker<Layer>* occlusion) OVERRIDE; |
38 virtual void OnOutputSurfaceCreated() OVERRIDE; | 38 virtual void OnOutputSurfaceCreated() OVERRIDE; |
39 | 39 |
40 protected: | 40 protected: |
41 TiledLayer(); | 41 TiledLayer(); |
42 virtual ~TiledLayer(); | 42 virtual ~TiledLayer(); |
43 | 43 |
44 void UpdateTileSizeAndTilingOption(); | 44 void UpdateTileSizeAndTilingOption(); |
45 void UpdateBounds(); | 45 void UpdateBounds(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 TilingOption tiling_option_; | 140 TilingOption tiling_option_; |
141 scoped_ptr<LayerTilingData> tiler_; | 141 scoped_ptr<LayerTilingData> tiler_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(TiledLayer); | 143 DISALLOW_COPY_AND_ASSIGN(TiledLayer); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace cc | 146 } // namespace cc |
147 | 147 |
148 #endif // CC_LAYERS_TILED_LAYER_H_ | 148 #endif // CC_LAYERS_TILED_LAYER_H_ |
OLD | NEW |