Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: cc/CCLayerTreeHostImpl.h

Issue 10956006: Convert CC scheduler logic to use base::TimeTicks/Delta instead of doubles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCFrameRateControllerTest.cpp ('k') | cc/CCLayerTreeHostImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "CCRenderPass.h" 11 #include "CCRenderPass.h"
12 #include "CCRenderPassSink.h" 12 #include "CCRenderPassSink.h"
13 #include "CCRenderer.h" 13 #include "CCRenderer.h"
14 #include "SkColor.h" 14 #include "SkColor.h"
15 #include "base/time.h"
15 #include <public/WebCompositorOutputSurfaceClient.h> 16 #include <public/WebCompositorOutputSurfaceClient.h>
16 #include <wtf/PassOwnPtr.h> 17 #include <wtf/PassOwnPtr.h>
17 #include <wtf/RefPtr.h> 18 #include <wtf/RefPtr.h>
18 19
19 namespace cc { 20 namespace cc {
20 21
21 class CCCompletionEvent; 22 class CCCompletionEvent;
22 class CCDebugRectHistory; 23 class CCDebugRectHistory;
23 class CCFrameRateCounter; 24 class CCFrameRateCounter;
24 class CCHeadsUpDisplayLayerImpl; 25 class CCHeadsUpDisplayLayerImpl;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 211
211 void animatePageScale(double monotonicTime); 212 void animatePageScale(double monotonicTime);
212 void animateScrollbars(double monotonicTime); 213 void animateScrollbars(double monotonicTime);
213 214
214 // Exposed for testing. 215 // Exposed for testing.
215 void calculateRenderSurfaceLayerList(CCLayerList&); 216 void calculateRenderSurfaceLayerList(CCLayerList&);
216 217
217 // Virtual for testing. 218 // Virtual for testing.
218 virtual void animateLayers(double monotonicTime, double wallClockTime); 219 virtual void animateLayers(double monotonicTime, double wallClockTime);
219 220
220 // Virtual for testing. Measured in seconds. 221 // Virtual for testing.
221 virtual double lowFrequencyAnimationInterval() const; 222 virtual base::TimeDelta lowFrequencyAnimationInterval() const;
222 223
223 CCLayerTreeHostImplClient* m_client; 224 CCLayerTreeHostImplClient* m_client;
224 int m_sourceFrameNumber; 225 int m_sourceFrameNumber;
225 226
226 private: 227 private:
227 void computeDoubleTapZoomDeltas(CCScrollAndScaleSet* scrollInfo); 228 void computeDoubleTapZoomDeltas(CCScrollAndScaleSet* scrollInfo);
228 void computePinchZoomDeltas(CCScrollAndScaleSet* scrollInfo); 229 void computePinchZoomDeltas(CCScrollAndScaleSet* scrollInfo);
229 void makeScrollAndScaleSet(CCScrollAndScaleSet* scrollInfo, const IntSize& s crollOffset, float pageScale); 230 void makeScrollAndScaleSet(CCScrollAndScaleSet* scrollInfo, const IntSize& s crollOffset, float pageScale);
230 231
231 void setPageScaleDelta(float); 232 void setPageScaleDelta(float);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // rendering and input event hit testing. 291 // rendering and input event hit testing.
291 CCLayerList m_renderSurfaceLayerList; 292 CCLayerList m_renderSurfaceLayerList;
292 293
293 OwnPtr<CCFrameRateCounter> m_fpsCounter; 294 OwnPtr<CCFrameRateCounter> m_fpsCounter;
294 OwnPtr<CCDebugRectHistory> m_debugRectHistory; 295 OwnPtr<CCDebugRectHistory> m_debugRectHistory;
295 }; 296 };
296 297
297 }; 298 };
298 299
299 #endif 300 #endif
OLDNEW
« no previous file with comments | « cc/CCFrameRateControllerTest.cpp ('k') | cc/CCLayerTreeHostImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698