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 CCLayerTreeHostImpl_h | 5 #ifndef CCLayerTreeHostImpl_h |
6 #define CCLayerTreeHostImpl_h | 6 #define CCLayerTreeHostImpl_h |
7 | 7 |
8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
9 #include "CCInputHandler.h" | 9 #include "CCInputHandler.h" |
10 #include "CCLayerSorter.h" | 10 #include "CCLayerSorter.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // Exposed for testing. | 269 // Exposed for testing. |
270 void calculateRenderSurfaceLayerList(CCLayerList&); | 270 void calculateRenderSurfaceLayerList(CCLayerList&); |
271 | 271 |
272 // Virtual for testing. | 272 // Virtual for testing. |
273 virtual void animateLayers(double monotonicTime, double wallClockTime); | 273 virtual void animateLayers(double monotonicTime, double wallClockTime); |
274 | 274 |
275 // Virtual for testing. | 275 // Virtual for testing. |
276 virtual base::TimeDelta lowFrequencyAnimationInterval() const; | 276 virtual base::TimeDelta lowFrequencyAnimationInterval() const; |
277 | 277 |
278 CCLayerTreeHostImplClient* m_client; | 278 CCLayerTreeHostImplClient* m_client; |
| 279 CCProxy* m_proxy; |
279 int m_sourceFrameNumber; | 280 int m_sourceFrameNumber; |
280 | 281 |
281 private: | 282 private: |
282 void computeDoubleTapZoomDeltas(CCScrollAndScaleSet* scrollInfo); | 283 void computeDoubleTapZoomDeltas(CCScrollAndScaleSet* scrollInfo); |
283 void computePinchZoomDeltas(CCScrollAndScaleSet* scrollInfo); | 284 void computePinchZoomDeltas(CCScrollAndScaleSet* scrollInfo); |
284 void makeScrollAndScaleSet(CCScrollAndScaleSet* scrollInfo, const IntSize& s
crollOffset, float pageScale); | 285 void makeScrollAndScaleSet(CCScrollAndScaleSet* scrollInfo, const IntSize& s
crollOffset, float pageScale); |
285 | 286 |
286 void setPageScaleDelta(float); | 287 void setPageScaleDelta(float); |
287 void updateMaxScrollPosition(); | 288 void updateMaxScrollPosition(); |
288 void trackDamageForAllSurfaces(CCLayerImpl* rootDrawLayer, const CCLayerList
& renderSurfaceLayerList); | 289 void trackDamageForAllSurfaces(CCLayerImpl* rootDrawLayer, const CCLayerList
& renderSurfaceLayerList); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 348 |
348 size_t m_numImplThreadScrolls; | 349 size_t m_numImplThreadScrolls; |
349 size_t m_numMainThreadScrolls; | 350 size_t m_numMainThreadScrolls; |
350 | 351 |
351 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); | 352 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); |
352 }; | 353 }; |
353 | 354 |
354 } // namespace cc | 355 } // namespace cc |
355 | 356 |
356 #endif | 357 #endif |
OLD | NEW |