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_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 void setDeviceScaleFactor(float); | 191 void setDeviceScaleFactor(float); |
192 | 192 |
193 float pageScaleFactor() const; | 193 float pageScaleFactor() const; |
194 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa
ctor, float maxPageScaleFactor); | 194 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa
ctor, float maxPageScaleFactor); |
195 | 195 |
196 scoped_ptr<ScrollAndScaleSet> processScrollDeltas(); | 196 scoped_ptr<ScrollAndScaleSet> processScrollDeltas(); |
197 gfx::Transform implTransform() const; | 197 gfx::Transform implTransform() const; |
198 | 198 |
199 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); | 199 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); |
200 | 200 |
| 201 void programmaticScroll(gfx::Vector2d targetOffset); |
| 202 |
201 bool needsAnimateLayers() const { return !m_animationRegistrar->active_anima
tion_controllers().empty(); } | 203 bool needsAnimateLayers() const { return !m_animationRegistrar->active_anima
tion_controllers().empty(); } |
202 | 204 |
203 bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties;
} | 205 bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties;
} |
204 | 206 |
205 void renderingStats(RenderingStats*) const; | 207 void renderingStats(RenderingStats*) const; |
206 | 208 |
207 void sendManagedMemoryStats( | 209 void sendManagedMemoryStats( |
208 size_t memoryVisibleBytes, | 210 size_t memoryVisibleBytes, |
209 size_t memoryVisibleAndNearbyBytes, | 211 size_t memoryVisibleAndNearbyBytes, |
210 size_t memoryUseBytes); | 212 size_t memoryUseBytes); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 size_t m_lastSentMemoryUseBytes; | 367 size_t m_lastSentMemoryUseBytes; |
366 | 368 |
367 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 369 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
368 | 370 |
369 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 371 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
370 }; | 372 }; |
371 | 373 |
372 } // namespace cc | 374 } // namespace cc |
373 | 375 |
374 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 376 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |