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

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

Issue 13817003: Damage root layer when viewport or top controls changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayerTreeHostDelegatedTestLayerUsesFrameDamage Created 7 years, 8 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_host_unittest_scroll.cc ('k') | no next file » | 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/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_id_provider.h" 9 #include "cc/animation/animation_id_provider.h"
10 #include "cc/animation/keyframed_animation_curve.h" 10 #include "cc/animation/keyframed_animation_curve.h"
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 base::TimeTicks LayerTreeImpl::CurrentFrameTime() const { 499 base::TimeTicks LayerTreeImpl::CurrentFrameTime() const {
500 return layer_tree_host_impl_->CurrentFrameTime(); 500 return layer_tree_host_impl_->CurrentFrameTime();
501 } 501 }
502 502
503 void LayerTreeImpl::SetNeedsCommit() { 503 void LayerTreeImpl::SetNeedsCommit() {
504 layer_tree_host_impl_->SetNeedsCommit(); 504 layer_tree_host_impl_->SetNeedsCommit();
505 } 505 }
506 506
507 void LayerTreeImpl::SetNeedsRedraw() { 507 void LayerTreeImpl::SetNeedsRedraw() {
508 layer_tree_host_impl_->setNeedsRedraw(); 508 layer_tree_host_impl_->SetNeedsRedraw();
509 } 509 }
510 510
511 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { 511 const LayerTreeDebugState& LayerTreeImpl::debug_state() const {
512 return layer_tree_host_impl_->debug_state(); 512 return layer_tree_host_impl_->debug_state();
513 } 513 }
514 514
515 float LayerTreeImpl::device_scale_factor() const { 515 float LayerTreeImpl::device_scale_factor() const {
516 return layer_tree_host_impl_->device_scale_factor(); 516 return layer_tree_host_impl_->device_scale_factor();
517 } 517 }
518 518
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 StartFadeOutAnimation(PinchZoomScrollbarHorizontal()); 660 StartFadeOutAnimation(PinchZoomScrollbarHorizontal());
661 StartFadeOutAnimation(PinchZoomScrollbarVertical()); 661 StartFadeOutAnimation(PinchZoomScrollbarVertical());
662 } 662 }
663 663
664 bool LayerTreeImpl::HasPinchZoomScrollbars() const { 664 bool LayerTreeImpl::HasPinchZoomScrollbars() const {
665 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID && 665 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID &&
666 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID; 666 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID;
667 } 667 }
668 668
669 } // namespace cc 669 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698