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

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

Issue 14999012: Move cc/debug/latency_info to ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/trees/layer_tree_impl.h ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('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/debug/traced_value.h" 10 #include "cc/debug/traced_value.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 547
548 gfx::Vector2dF original_viewport_size = 548 gfx::Vector2dF original_viewport_size =
549 gfx::RectF(root_clip->bounds()).bottom_right() - 549 gfx::RectF(root_clip->bounds()).bottom_right() -
550 gfx::PointF(); 550 gfx::PointF();
551 original_viewport_size.Scale(1 / page_scale_factor()); 551 original_viewport_size.Scale(1 / page_scale_factor());
552 552
553 root_scroll->SetFixedContainerSizeDelta( 553 root_scroll->SetFixedContainerSizeDelta(
554 scrollable_viewport_size - original_viewport_size); 554 scrollable_viewport_size - original_viewport_size);
555 } 555 }
556 556
557 void LayerTreeImpl::SetLatencyInfo(const LatencyInfo& latency_info) { 557 void LayerTreeImpl::SetLatencyInfo(const ui::LatencyInfo& latency_info) {
558 latency_info_.MergeWith(latency_info); 558 latency_info_.MergeWith(latency_info);
559 } 559 }
560 560
561 const LatencyInfo& LayerTreeImpl::GetLatencyInfo() { 561 const ui::LatencyInfo& LayerTreeImpl::GetLatencyInfo() {
562 return latency_info_; 562 return latency_info_;
563 } 563 }
564 564
565 void LayerTreeImpl::ClearLatencyInfo() { 565 void LayerTreeImpl::ClearLatencyInfo() {
566 latency_info_.Clear(); 566 latency_info_.Clear();
567 } 567 }
568 568
569 void LayerTreeImpl::WillModifyTilePriorities() { 569 void LayerTreeImpl::WillModifyTilePriorities() {
570 layer_tree_host_impl_->tile_manager()->WillModifyTilePriorities(); 570 layer_tree_host_impl_->tile_manager()->WillModifyTilePriorities();
571 } 571 }
572 572
573 } // namespace cc 573 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698