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_LAYER_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 172 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
173 | 173 |
174 PrioritizedResourceManager* contentsTextureManager() const; | 174 PrioritizedResourceManager* contentsTextureManager() const; |
175 | 175 |
176 bool visible() const { return m_visible; } | 176 bool visible() const { return m_visible; } |
177 void setVisible(bool); | 177 void setVisible(bool); |
178 | 178 |
179 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); | 179 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); |
180 | 180 |
| 181 void hideTopControls(); |
| 182 |
181 void applyScrollAndScale(const ScrollAndScaleSet&); | 183 void applyScrollAndScale(const ScrollAndScaleSet&); |
182 void setImplTransform(const gfx::Transform&); | 184 void setImplTransform(const gfx::Transform&); |
183 | 185 |
184 void startRateLimiter(WebKit::WebGraphicsContext3D*); | 186 void startRateLimiter(WebKit::WebGraphicsContext3D*); |
185 void stopRateLimiter(WebKit::WebGraphicsContext3D*); | 187 void stopRateLimiter(WebKit::WebGraphicsContext3D*); |
186 | 188 |
187 // RateLimitClient implementation | 189 // RateLimitClient implementation |
188 virtual void rateLimit() OVERRIDE; | 190 virtual void rateLimit() OVERRIDE; |
189 | 191 |
190 bool bufferedUpdates(); | 192 bool bufferedUpdates(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 size_t m_partialTextureUpdateRequests; | 285 size_t m_partialTextureUpdateRequests; |
284 | 286 |
285 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 287 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
286 | 288 |
287 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 289 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
288 }; | 290 }; |
289 | 291 |
290 } // namespace cc | 292 } // namespace cc |
291 | 293 |
292 #endif // CC_LAYER_TREE_HOST_H_ | 294 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |