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_TILED_LAYER_H_ | 5 #ifndef CC_TILED_LAYER_H_ |
6 #define CC_TILED_LAYER_H_ | 6 #define CC_TILED_LAYER_H_ |
7 | 7 |
8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
9 #include "cc/contents_scaling_layer.h" | 9 #include "cc/contents_scaling_layer.h" |
10 #include "cc/layer_tiling_data.h" | 10 #include "cc/layer_tiling_data.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Reset state on tiles that will be used for updating the layer. | 57 // Reset state on tiles that will be used for updating the layer. |
58 void resetUpdateState(); | 58 void resetUpdateState(); |
59 | 59 |
60 // After preparing an update, returns true if more painting is needed. | 60 // After preparing an update, returns true if more painting is needed. |
61 bool needsIdlePaint(); | 61 bool needsIdlePaint(); |
62 gfx::Rect idlePaintRect(); | 62 gfx::Rect idlePaintRect(); |
63 | 63 |
64 bool skipsDraw() const { return m_skipsDraw; } | 64 bool skipsDraw() const { return m_skipsDraw; } |
65 | 65 |
66 // Virtual for testing | 66 // Virtual for testing |
67 virtual PrioritizedTextureManager* textureManager() const; | 67 virtual PrioritizedResourceManager* resourceManager() const; |
68 | 68 |
69 private: | 69 private: |
70 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; | 70 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; |
71 | 71 |
72 void createTilerIfNeeded(); | 72 void createTilerIfNeeded(); |
73 void setTilingOption(TilingOption); | 73 void setTilingOption(TilingOption); |
74 | 74 |
75 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); | 75 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); |
76 bool tileNeedsBufferedUpdate(UpdatableTile*); | 76 bool tileNeedsBufferedUpdate(UpdatableTile*); |
77 | 77 |
(...skipping 17 matching lines...) Expand all Loading... |
95 gfx::Rect m_predictedVisibleRect; | 95 gfx::Rect m_predictedVisibleRect; |
96 gfx::Rect m_previousVisibleRect; | 96 gfx::Rect m_previousVisibleRect; |
97 gfx::Size m_previousContentBounds; | 97 gfx::Size m_previousContentBounds; |
98 | 98 |
99 TilingOption m_tilingOption; | 99 TilingOption m_tilingOption; |
100 scoped_ptr<LayerTilingData> m_tiler; | 100 scoped_ptr<LayerTilingData> m_tiler; |
101 }; | 101 }; |
102 | 102 |
103 } | 103 } |
104 #endif // CC_TILED_LAYER_H_ | 104 #endif // CC_TILED_LAYER_H_ |
OLD | NEW |