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

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 178103004: Removing the use of base::Time inside the LayerTreeHost system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing names of doubles, rebase onto master. 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
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/single_thread_proxy.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 #include "cc/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/animation/keyframed_animation_curve.h" 8 #include "cc/animation/keyframed_animation_curve.h"
9 #include "cc/animation/scrollbar_animation_controller.h" 9 #include "cc/animation/scrollbar_animation_controller.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 } 675 }
676 676
677 bool LayerTreeImpl::PinchGestureActive() const { 677 bool LayerTreeImpl::PinchGestureActive() const {
678 return layer_tree_host_impl_->pinch_gesture_active(); 678 return layer_tree_host_impl_->pinch_gesture_active();
679 } 679 }
680 680
681 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { 681 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const {
682 return layer_tree_host_impl_->CurrentFrameTimeTicks(); 682 return layer_tree_host_impl_->CurrentFrameTimeTicks();
683 } 683 }
684 684
685 base::Time LayerTreeImpl::CurrentFrameTime() const {
686 return layer_tree_host_impl_->CurrentFrameTime();
687 }
688
689 base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const { 685 base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const {
690 return layer_tree_host_impl_->CurrentPhysicalTimeTicks(); 686 return layer_tree_host_impl_->CurrentPhysicalTimeTicks();
691 } 687 }
692 688
693 void LayerTreeImpl::SetNeedsCommit() { 689 void LayerTreeImpl::SetNeedsCommit() {
694 layer_tree_host_impl_->SetNeedsCommit(); 690 layer_tree_host_impl_->SetNeedsCommit();
695 } 691 }
696 692
697 gfx::Size LayerTreeImpl::DrawViewportSize() const { 693 gfx::Size LayerTreeImpl::DrawViewportSize() const {
698 return layer_tree_host_impl_->DrawViewportSize(); 694 return layer_tree_host_impl_->DrawViewportSize();
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() 954 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest()
959 const { 955 const {
960 // Only the active tree needs to know about layers with copy requests, as 956 // Only the active tree needs to know about layers with copy requests, as
961 // they are aborted if not serviced during draw. 957 // they are aborted if not serviced during draw.
962 DCHECK(IsActiveTree()); 958 DCHECK(IsActiveTree());
963 959
964 return layers_with_copy_output_request_; 960 return layers_with_copy_output_request_;
965 } 961 }
966 962
967 } // namespace cc 963 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698