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

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: Rebase to 188402 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
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('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 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void Animate(base::TimeTicks monotonic_time, 129 virtual void Animate(base::TimeTicks monotonic_time,
130 base::Time wall_clock_time); 130 base::Time wall_clock_time);
131 131
132 void ManageTiles(); 132 void ManageTiles();
133 133
134 // Returns false if problems occured preparing the frame, and we should try 134 // Returns false if problems occured preparing the frame, and we should try
135 // to avoid displaying the frame. If prepareToDraw is called, DidDrawAllLayers 135 // to avoid displaying the frame. If prepareToDraw is called, DidDrawAllLayers
136 // must also be called, regardless of whether DrawLayers is called between the 136 // must also be called, regardless of whether DrawLayers is called between the
137 // two. 137 // two.
138 virtual bool PrepareToDraw(FrameData* frame); 138 virtual bool PrepareToDraw(FrameData* frame);
139 virtual void DrawLayers(FrameData* frame); 139 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time);
140 // Must be called if and only if PrepareToDraw was called. 140 // Must be called if and only if PrepareToDraw was called.
141 void DidDrawAllLayers(const FrameData& frame); 141 void DidDrawAllLayers(const FrameData& frame);
142 142
143 const LayerTreeSettings& settings() const { return settings_; } 143 const LayerTreeSettings& settings() const { return settings_; }
144 144
145 // RendererClient implementation 145 // RendererClient implementation
146 private: 146 private:
147 virtual gfx::Size DeviceViewportSize() const OVERRIDE; 147 virtual gfx::Size DeviceViewportSize() const OVERRIDE;
148 virtual const LayerTreeSettings& Settings() const OVERRIDE; 148 virtual const LayerTreeSettings& Settings() const OVERRIDE;
149 public: 149 public:
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 base::TimeTicks current_frame_time_; 437 base::TimeTicks current_frame_time_;
438 438
439 scoped_ptr<AnimationRegistrar> animation_registrar_; 439 scoped_ptr<AnimationRegistrar> animation_registrar_;
440 440
441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
442 }; 442 };
443 443
444 } // namespace cc 444 } // namespace cc
445 445
446 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 446 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698