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 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
9 | 9 |
10 #include "CCLayerTilingData.h" | 10 #include "CCLayerTilingData.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // After preparing an update, returns true if more painting is needed. | 65 // After preparing an update, returns true if more painting is needed. |
66 bool needsIdlePaint(); | 66 bool needsIdlePaint(); |
67 IntRect idlePaintRect(); | 67 IntRect idlePaintRect(); |
68 | 68 |
69 bool skipsDraw() const { return m_skipsDraw; } | 69 bool skipsDraw() const { return m_skipsDraw; } |
70 | 70 |
71 // Virtual for testing | 71 // Virtual for testing |
72 virtual CCPrioritizedTextureManager* textureManager() const; | 72 virtual CCPrioritizedTextureManager* textureManager() const; |
73 | 73 |
74 private: | 74 private: |
75 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 75 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
76 | 76 |
77 void createTilerIfNeeded(); | 77 void createTilerIfNeeded(); |
78 void setTilingOption(TilingOption); | 78 void setTilingOption(TilingOption); |
79 | 79 |
80 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); | 80 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); |
81 bool tileNeedsBufferedUpdate(UpdatableTile*); | 81 bool tileNeedsBufferedUpdate(UpdatableTile*); |
82 | 82 |
83 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott
om, const CCOcclusionTracker*); | 83 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott
om, const CCOcclusionTracker*); |
84 | 84 |
85 bool updateTiles(int left, int top, int right, int bottom, CCTextureUpdateQu
eue&, const CCOcclusionTracker*, CCRenderingStats&, bool& didPaint); | 85 bool updateTiles(int left, int top, int right, int bottom, CCTextureUpdateQu
eue&, const CCOcclusionTracker*, CCRenderingStats&, bool& didPaint); |
(...skipping 10 matching lines...) Expand all Loading... |
96 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat; | 96 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat; |
97 | 97 |
98 TilingOption m_tilingOption; | 98 TilingOption m_tilingOption; |
99 OwnPtr<CCLayerTilingData> m_tiler; | 99 OwnPtr<CCLayerTilingData> m_tiler; |
100 }; | 100 }; |
101 | 101 |
102 } | 102 } |
103 #endif // USE(ACCELERATED_COMPOSITING) | 103 #endif // USE(ACCELERATED_COMPOSITING) |
104 | 104 |
105 #endif | 105 #endif |
OLD | NEW |