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

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

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
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 <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 731 }
732 732
733 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const { 733 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const {
734 return layer_tree_host_impl_->begin_impl_frame_interval(); 734 return layer_tree_host_impl_->begin_impl_frame_interval();
735 } 735 }
736 736
737 void LayerTreeImpl::SetNeedsCommit() { 737 void LayerTreeImpl::SetNeedsCommit() {
738 layer_tree_host_impl_->SetNeedsCommit(); 738 layer_tree_host_impl_->SetNeedsCommit();
739 } 739 }
740 740
741 gfx::Rect LayerTreeImpl::DeviceViewport() const {
742 return layer_tree_host_impl_->DeviceViewport();
743 }
744
741 gfx::Size LayerTreeImpl::DrawViewportSize() const { 745 gfx::Size LayerTreeImpl::DrawViewportSize() const {
742 return layer_tree_host_impl_->DrawViewportSize(); 746 return layer_tree_host_impl_->DrawViewportSize();
743 } 747 }
744 748
749 gfx::Rect LayerTreeImpl::ExternalTilingRect() const {
750 return layer_tree_host_impl_->ExternalTilingRect();
751 }
752
753 const gfx::Transform& LayerTreeImpl::ExternalTilingTransform() const {
754 return layer_tree_host_impl_->ExternalTilingTransform();
755 }
756
745 scoped_ptr<ScrollbarAnimationController> 757 scoped_ptr<ScrollbarAnimationController>
746 LayerTreeImpl::CreateScrollbarAnimationController(LayerImpl* scrolling_layer) { 758 LayerTreeImpl::CreateScrollbarAnimationController(LayerImpl* scrolling_layer) {
747 DCHECK(settings().scrollbar_fade_delay_ms); 759 DCHECK(settings().scrollbar_fade_delay_ms);
748 DCHECK(settings().scrollbar_fade_duration_ms); 760 DCHECK(settings().scrollbar_fade_duration_ms);
749 base::TimeDelta delay = 761 base::TimeDelta delay =
750 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms); 762 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms);
751 base::TimeDelta duration = 763 base::TimeDelta duration =
752 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_duration_ms); 764 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_duration_ms);
753 switch (settings().scrollbar_animator) { 765 switch (settings().scrollbar_animator) {
754 case LayerTreeSettings::LinearFade: { 766 case LayerTreeSettings::LinearFade: {
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 1387
1376 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 1388 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
1377 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); 1389 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer);
1378 } 1390 }
1379 1391
1380 void LayerTreeImpl::InputScrollAnimationFinished() { 1392 void LayerTreeImpl::InputScrollAnimationFinished() {
1381 layer_tree_host_impl_->ScrollEnd(); 1393 layer_tree_host_impl_->ScrollEnd();
1382 } 1394 }
1383 1395
1384 } // namespace cc 1396 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698