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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 615953005: Move page scale animation from LayerTreeHostImpl to LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added CC_EXPORT to PageScaleAnimation 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 6e5994bb5452cbb3d54381c715cc843dcb53e55f..95a9bac0b9f472372f736c5b9ad13032ab374168 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -48,6 +48,7 @@ class LayerTreeImpl;
class LayerTreeSettings;
class MemoryHistory;
class OutputSurface;
+class PageScaleAnimation;
class PaintTimeCounter;
class PictureLayerImpl;
class Proxy;
@@ -321,6 +322,13 @@ class CC_EXPORT LayerTreeImpl {
return top_controls_content_offset_ + top_controls_delta_;
}
+ void SetPageScaleAnimation(
+ const gfx::Vector2d& target_offset,
+ bool anchor_point,
+ float page_scale,
+ base::TimeDelta duration);
+ scoped_ptr<PageScaleAnimation> TakePageScaleAnimation();
+
protected:
explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
void ReleaseResourcesRecursive(LayerImpl* current);
@@ -392,6 +400,8 @@ class CC_EXPORT LayerTreeImpl {
float top_controls_delta_;
float sent_top_controls_delta_;
+ scoped_ptr<PageScaleAnimation> page_scale_animation_;
+
private:
DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
};
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698