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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 15139007: Ensure LayerTreeHostImpl's current frame time is updated every frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/test/layer_tree_test.cc ('k') | cc/trees/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_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 template <typename RenderPassCuller> 341 template <typename RenderPassCuller>
342 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); 342 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame);
343 343
344 skia::RefPtr<SkPicture> CapturePicture(); 344 skia::RefPtr<SkPicture> CapturePicture();
345 345
346 bool pinch_gesture_active() const { return pinch_gesture_active_; } 346 bool pinch_gesture_active() const { return pinch_gesture_active_; }
347 347
348 void SetTreePriority(TreePriority priority); 348 void SetTreePriority(TreePriority priority);
349 349
350 void BeginNextFrame(); 350 void ResetCurrentFrameTimeForNextFrame();
351 base::TimeTicks CurrentFrameTimeTicks(); 351 base::TimeTicks CurrentFrameTimeTicks();
352 base::Time CurrentFrameTime(); 352 base::Time CurrentFrameTime();
353 353
354 scoped_ptr<base::Value> AsValue() const; 354 scoped_ptr<base::Value> AsValue() const;
355 scoped_ptr<base::Value> ActivationStateAsValue() const; 355 scoped_ptr<base::Value> ActivationStateAsValue() const;
356 356
357 bool page_scale_animation_active() const { return !!page_scale_animation_; } 357 bool page_scale_animation_active() const { return !!page_scale_animation_; }
358 358
359 protected: 359 protected:
360 LayerTreeHostImpl( 360 LayerTreeHostImpl(
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 scoped_ptr<AnimationRegistrar> animation_registrar_; 484 scoped_ptr<AnimationRegistrar> animation_registrar_;
485 485
486 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 486 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
487 487
488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
489 }; 489 };
490 490
491 } // namespace cc 491 } // namespace cc
492 492
493 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 493 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698