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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 LayerList willDrawLayers; 103 LayerList willDrawLayers;
104 bool containsIncompleteTile; 104 bool containsIncompleteTile;
105 105
106 // RenderPassSink implementation. 106 // RenderPassSink implementation.
107 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE; 107 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE;
108 }; 108 };
109 109
110 // Virtual for testing. 110 // Virtual for testing.
111 virtual void beginCommit(); 111 virtual void beginCommit();
112 virtual void commitComplete(); 112 virtual void commitComplete();
113 virtual void animate(base::TimeTicks monotonicTime, base::Time wallClockTime ); 113 virtual void animate(base::TimeTicks monotonicTime, base::Time wallClockTime );
nduca 2013/03/13 05:53:28 should we clarify these to be frameBeginTime as we
egraether 2013/03/13 22:26:01 This naming goes through some files and I'm not su
114 virtual void setVisible(bool); 114 virtual void setVisible(bool);
115 115
116 void manageTiles(); 116 void manageTiles();
117 117
118 // Returns false if problems occured preparing the frame, and we should try 118 // Returns false if problems occured preparing the frame, and we should try
119 // to avoid displaying the frame. If prepareToDraw is called, 119 // to avoid displaying the frame. If prepareToDraw is called,
120 // didDrawAllLayers must also be called, regardless of whether drawLayers is 120 // didDrawAllLayers must also be called, regardless of whether drawLayers is
121 // called between the two. 121 // called between the two.
122 virtual bool prepareToDraw(FrameData&); 122 virtual bool prepareToDraw(FrameData&);
123 virtual void drawLayers(FrameData&); 123 virtual void drawLayers(FrameData&, base::TimeTicks frameBeginTime);
124 // Must be called if and only if prepareToDraw was called. 124 // Must be called if and only if prepareToDraw was called.
125 void didDrawAllLayers(const FrameData&); 125 void didDrawAllLayers(const FrameData&);
126 126
127 // RendererClient implementation 127 // RendererClient implementation
128 virtual gfx::Size DeviceViewportSize() const OVERRIDE; 128 virtual gfx::Size DeviceViewportSize() const OVERRIDE;
129 virtual const LayerTreeSettings& Settings() const OVERRIDE; 129 virtual const LayerTreeSettings& Settings() const OVERRIDE;
130 virtual void DidLoseOutputSurface() OVERRIDE; 130 virtual void DidLoseOutputSurface() OVERRIDE;
131 virtual void OnSwapBuffersComplete() OVERRIDE; 131 virtual void OnSwapBuffersComplete() OVERRIDE;
132 virtual void SetFullRootLayerDamage() OVERRIDE; 132 virtual void SetFullRootLayerDamage() OVERRIDE;
133 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE; 133 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 base::TimeTicks m_currentFrameTime; 369 base::TimeTicks m_currentFrameTime;
370 370
371 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 371 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
372 372
373 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 373 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
374 }; 374 };
375 375
376 } // namespace cc 376 } // namespace cc
377 377
378 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 378 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | cc/scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698