| 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 TiledLayerChromium_h | 5 #ifndef TiledLayerChromium_h |
| 6 #define TiledLayerChromium_h | 6 #define TiledLayerChromium_h |
| 7 | 7 |
| 8 #include "cc/cc_export.h" |
| 8 #include "cc/contents_scaling_layer.h" | 9 #include "cc/contents_scaling_layer.h" |
| 10 #include "cc/layer_tiling_data.h" |
| 9 #include "cc/layer_updater.h" | 11 #include "cc/layer_updater.h" |
| 10 #include "cc/layer_tiling_data.h" | |
| 11 | 12 |
| 12 namespace cc { | 13 namespace cc { |
| 13 class UpdatableTile; | 14 class UpdatableTile; |
| 14 | 15 |
| 15 class TiledLayer : public ContentsScalingLayer { | 16 class CC_EXPORT TiledLayer : public ContentsScalingLayer { |
| 16 public: | 17 public: |
| 17 enum TilingOption { AlwaysTile, NeverTile, AutoTile }; | 18 enum TilingOption { AlwaysTile, NeverTile, AutoTile }; |
| 18 | 19 |
| 19 virtual void setIsMask(bool) OVERRIDE; | 20 virtual void setIsMask(bool) OVERRIDE; |
| 20 | 21 |
| 21 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 22 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
| 22 | 23 |
| 23 virtual bool drawsContent() const OVERRIDE; | 24 virtual bool drawsContent() const OVERRIDE; |
| 24 | 25 |
| 25 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; | 26 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 gfx::Rect m_predictedVisibleRect; | 95 gfx::Rect m_predictedVisibleRect; |
| 95 gfx::Rect m_previousVisibleRect; | 96 gfx::Rect m_previousVisibleRect; |
| 96 gfx::Size m_previousContentBounds; | 97 gfx::Size m_previousContentBounds; |
| 97 | 98 |
| 98 TilingOption m_tilingOption; | 99 TilingOption m_tilingOption; |
| 99 scoped_ptr<LayerTilingData> m_tiler; | 100 scoped_ptr<LayerTilingData> m_tiler; |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } | 103 } |
| 103 #endif | 104 #endif |
| OLD | NEW |