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

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: CC_EXPORT for MutatorHostClient Created 5 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 #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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void SetLayerOpacityMutated(int layer_id, 254 void SetLayerOpacityMutated(int layer_id,
255 LayerTreeType tree_type, 255 LayerTreeType tree_type,
256 float opacity) override; 256 float opacity) override;
257 void SetLayerTransformMutated(int layer_id, 257 void SetLayerTransformMutated(int layer_id,
258 LayerTreeType tree_type, 258 LayerTreeType tree_type,
259 const gfx::Transform& transform) override; 259 const gfx::Transform& transform) override;
260 void SetLayerScrollOffsetMutated( 260 void SetLayerScrollOffsetMutated(
261 int layer_id, 261 int layer_id,
262 LayerTreeType tree_type, 262 LayerTreeType tree_type,
263 const gfx::ScrollOffset& scroll_offset) override; 263 const gfx::ScrollOffset& scroll_offset) override;
264 void ScrollOffsetAnimationFinished() override;
265 gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const override;
264 266
265 virtual void PrepareTiles(); 267 virtual void PrepareTiles();
266 268
267 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we 269 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
268 // should try to avoid displaying the frame. If PrepareToDraw is called, 270 // should try to avoid displaying the frame. If PrepareToDraw is called,
269 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is 271 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is
270 // called between the two. 272 // called between the two.
271 virtual DrawResult PrepareToDraw(FrameData* frame); 273 virtual DrawResult PrepareToDraw(FrameData* frame);
272 virtual void DrawLayers(FrameData* frame); 274 virtual void DrawLayers(FrameData* frame);
273 // Must be called if and only if PrepareToDraw was called. 275 // Must be called if and only if PrepareToDraw was called.
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 817 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
816 818
817 scoped_ptr<Viewport> viewport_; 819 scoped_ptr<Viewport> viewport_;
818 820
819 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 821 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
820 }; 822 };
821 823
822 } // namespace cc 824 } // namespace cc
823 825
824 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 826 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698