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

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

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 2 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') | 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 <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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 } 1450 }
1451 1451
1452 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 1452 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
1453 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); 1453 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer);
1454 } 1454 }
1455 1455
1456 void LayerTreeImpl::InputScrollAnimationFinished() { 1456 void LayerTreeImpl::InputScrollAnimationFinished() {
1457 layer_tree_host_impl_->ScrollEnd(); 1457 layer_tree_host_impl_->ScrollEnd();
1458 } 1458 }
1459 1459
1460 bool LayerTreeImpl::SmoothnessTakesPriority() const {
1461 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY;
1462 }
1463
1460 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { 1464 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const {
1461 return proxy()->blocking_main_thread_task_runner(); 1465 return proxy()->blocking_main_thread_task_runner();
1462 } 1466 }
1463 1467
1464 void LayerTreeImpl::SetPageScaleAnimation( 1468 void LayerTreeImpl::SetPageScaleAnimation(
1465 const gfx::Vector2d& target_offset, 1469 const gfx::Vector2d& target_offset,
1466 bool anchor_point, 1470 bool anchor_point,
1467 float page_scale, 1471 float page_scale,
1468 base::TimeDelta duration) { 1472 base::TimeDelta duration) {
1469 if (!InnerViewportScrollLayer()) 1473 if (!InnerViewportScrollLayer())
(...skipping 26 matching lines...) Expand all
1496 page_scale, 1500 page_scale,
1497 duration.InSecondsF()); 1501 duration.InSecondsF());
1498 } 1502 }
1499 } 1503 }
1500 1504
1501 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { 1505 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() {
1502 return page_scale_animation_.Pass(); 1506 return page_scale_animation_.Pass();
1503 } 1507 }
1504 1508
1505 } // namespace cc 1509 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698