| 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" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 class LayerUpdater; | 13 class LayerUpdater; |
| 14 class PrioritizedResourceManager; | 14 class PrioritizedResourceManager; |
| 15 class PrioritizedResource; | 15 class PrioritizedResource; |
| 16 class UpdatableTile; | 16 class UpdatableTile; |
| 17 | 17 |
| 18 class CC_EXPORT TiledLayer : public ContentsScalingLayer { | 18 class CC_EXPORT TiledLayer : public ContentsScalingLayer { |
| 19 public: | 19 public: |
| 20 enum TilingOption { | 20 enum TilingOption { |
| 21 ALWAYS_TILE, | 21 ALWAYS_TILE, |
| 22 NEVER_TILE, | 22 NEVER_TILE, |
| 23 AUTO_TILE, | 23 AUTO_TILE, |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // Layer implementation. | 26 // Layer implementation. |
| 27 virtual void SetIsMask(bool is_mask) OVERRIDE; | 27 virtual void SetIsMask(bool is_mask) OVERRIDE; |
| 28 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 28 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
| 29 virtual bool BlocksPendingCommit() const OVERRIDE; |
| 29 virtual bool DrawsContent() const OVERRIDE; | 30 virtual bool DrawsContent() const OVERRIDE; |
| 30 virtual void ReduceMemoryUsage() OVERRIDE; | 31 virtual void ReduceMemoryUsage() OVERRIDE; |
| 31 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; | 32 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; |
| 32 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; | 33 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; |
| 33 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) | 34 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) |
| 34 OVERRIDE; | 35 OVERRIDE; |
| 35 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; | 36 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; |
| 36 virtual bool Update(ResourceUpdateQueue* queue, | 37 virtual bool Update(ResourceUpdateQueue* queue, |
| 37 const OcclusionTracker* occlusion) OVERRIDE; | 38 const OcclusionTracker* occlusion) OVERRIDE; |
| 38 | 39 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 133 |
| 133 TilingOption tiling_option_; | 134 TilingOption tiling_option_; |
| 134 scoped_ptr<LayerTilingData> tiler_; | 135 scoped_ptr<LayerTilingData> tiler_; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(TiledLayer); | 137 DISALLOW_COPY_AND_ASSIGN(TiledLayer); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace cc | 140 } // namespace cc |
| 140 | 141 |
| 141 #endif // CC_LAYERS_TILED_LAYER_H_ | 142 #endif // CC_LAYERS_TILED_LAYER_H_ |
| OLD | NEW |