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/trees/layer_tree_host_impl.h

Issue 210793002: Replace CurrentPhysicalTimeTicks with a fallback in CurrentFrameTimeTicks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/layer_impl.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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 return accumulated_root_overscroll_; 381 return accumulated_root_overscroll_;
382 } 382 }
383 gfx::Vector2dF current_fling_velocity() const { 383 gfx::Vector2dF current_fling_velocity() const {
384 return current_fling_velocity_; 384 return current_fling_velocity_;
385 } 385 }
386 386
387 bool pinch_gesture_active() const { return pinch_gesture_active_; } 387 bool pinch_gesture_active() const { return pinch_gesture_active_; }
388 388
389 void SetTreePriority(TreePriority priority); 389 void SetTreePriority(TreePriority priority);
390 390
391 void UpdateCurrentFrameTime();
391 void ResetCurrentFrameTimeForNextFrame(); 392 void ResetCurrentFrameTimeForNextFrame();
392 virtual base::TimeTicks CurrentFrameTimeTicks(); 393 virtual base::TimeTicks CurrentFrameTimeTicks();
393 394
394 virtual base::TimeTicks CurrentPhysicalTimeTicks() const;
395
396 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } 395 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); }
397 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; 396 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const;
398 scoped_ptr<base::Value> ActivationStateAsValue() const; 397 scoped_ptr<base::Value> ActivationStateAsValue() const;
399 398
400 bool page_scale_animation_active() const { return !!page_scale_animation_; } 399 bool page_scale_animation_active() const { return !!page_scale_animation_; }
401 400
402 virtual void CreateUIResource(UIResourceId uid, 401 virtual void CreateUIResource(UIResourceId uid,
403 const UIResourceBitmap& bitmap); 402 const UIResourceBitmap& bitmap);
404 // Deletes a UI resource. May safely be called more than once. 403 // Deletes a UI resource. May safely be called more than once.
405 virtual void DeleteUIResource(UIResourceId uid); 404 virtual void DeleteUIResource(UIResourceId uid);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 void SendReleaseResourcesRecursive(LayerImpl* current); 497 void SendReleaseResourcesRecursive(LayerImpl* current);
499 bool EnsureRenderSurfaceLayerList(); 498 bool EnsureRenderSurfaceLayerList();
500 void ClearCurrentlyScrollingLayer(); 499 void ClearCurrentlyScrollingLayer();
501 500
502 bool HandleMouseOverScrollbar(LayerImpl* layer_impl, 501 bool HandleMouseOverScrollbar(LayerImpl* layer_impl,
503 const gfx::PointF& device_viewport_point); 502 const gfx::PointF& device_viewport_point);
504 503
505 void AnimateScrollbarsRecursive(LayerImpl* layer, 504 void AnimateScrollbarsRecursive(LayerImpl* layer,
506 base::TimeTicks time); 505 base::TimeTicks time);
507 506
508 void UpdateCurrentFrameTime(base::TimeTicks* ticks) const;
509
510 LayerImpl* FindScrollLayerForDeviceViewportPoint( 507 LayerImpl* FindScrollLayerForDeviceViewportPoint(
511 const gfx::PointF& device_viewport_point, 508 const gfx::PointF& device_viewport_point,
512 InputHandler::ScrollInputType type, 509 InputHandler::ScrollInputType type,
513 LayerImpl* layer_hit_by_point, 510 LayerImpl* layer_hit_by_point,
514 bool* scroll_on_main_thread) const; 511 bool* scroll_on_main_thread) const;
515 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point, 512 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point,
516 LayerImpl* layer_impl); 513 LayerImpl* layer_impl);
517 void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time); 514 void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time);
518 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, 515 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy,
519 bool zero_budget); 516 bool zero_budget);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 int id_; 653 int id_;
657 654
658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 655 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
659 656
660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 657 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
661 }; 658 };
662 659
663 } // namespace cc 660 } // namespace cc
664 661
665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 662 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698