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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 1009233002: CC Animations: Port Impl-only-scrolling to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui
Patch Set: Add unittests. Created 5 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.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 void SetLayerOpacityMutated(int layer_id, 248 void SetLayerOpacityMutated(int layer_id,
249 bool affects_active_tree, 249 bool affects_active_tree,
250 float opacity) override; 250 float opacity) override;
251 void SetLayerTransformMutated(int layer_id, 251 void SetLayerTransformMutated(int layer_id,
252 bool affects_active_tree, 252 bool affects_active_tree,
253 const gfx::Transform& transform) override; 253 const gfx::Transform& transform) override;
254 void SetLayerScrollOffsetMutated( 254 void SetLayerScrollOffsetMutated(
255 int layer_id, 255 int layer_id,
256 bool active_tree, 256 bool active_tree,
257 const gfx::ScrollOffset& scroll_offset) override; 257 const gfx::ScrollOffset& scroll_offset) override;
258 void ScrollOffsetAnimationFinished() override;
259 gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const override;
258 260
259 virtual void PrepareTiles(); 261 virtual void PrepareTiles();
260 262
261 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we 263 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
262 // should try to avoid displaying the frame. If PrepareToDraw is called, 264 // should try to avoid displaying the frame. If PrepareToDraw is called,
263 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is 265 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is
264 // called between the two. 266 // called between the two.
265 virtual DrawResult PrepareToDraw(FrameData* frame); 267 virtual DrawResult PrepareToDraw(FrameData* frame);
266 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); 268 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time);
267 // Must be called if and only if PrepareToDraw was called. 269 // Must be called if and only if PrepareToDraw was called.
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 800 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
799 801
800 scoped_ptr<Viewport> viewport_; 802 scoped_ptr<Viewport> viewport_;
801 803
802 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 804 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
803 }; 805 };
804 806
805 } // namespace cc 807 } // namespace cc
806 808
807 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 809 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698