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

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

Issue 95763002: cc: Support animating scroll offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE; 158 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE;
159 }; 159 };
160 160
161 virtual void BeginCommit(); 161 virtual void BeginCommit();
162 virtual void CommitComplete(); 162 virtual void CommitComplete();
163 virtual void Animate(base::TimeTicks monotonic_time, 163 virtual void Animate(base::TimeTicks monotonic_time,
164 base::Time wall_clock_time); 164 base::Time wall_clock_time);
165 virtual void UpdateAnimationState(bool start_ready_animations); 165 virtual void UpdateAnimationState(bool start_ready_animations);
166 void MainThreadHasStoppedFlinging(); 166 void MainThreadHasStoppedFlinging();
167 void UpdateBackgroundAnimateTicking(bool should_background_tick); 167 void UpdateBackgroundAnimateTicking(bool should_background_tick);
168 void DidAnimateScrollOffset();
168 void SetViewportDamage(gfx::Rect damage_rect); 169 void SetViewportDamage(gfx::Rect damage_rect);
169 170
170 virtual void ManageTiles(); 171 virtual void ManageTiles();
171 172
172 // Returns false if problems occured preparing the frame, and we should try 173 // Returns false if problems occured preparing the frame, and we should try
173 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers 174 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers
174 // must also be called, regardless of whether DrawLayers is called between the 175 // must also be called, regardless of whether DrawLayers is called between the
175 // two. 176 // two.
176 virtual bool PrepareToDraw(FrameData* frame, 177 virtual bool PrepareToDraw(FrameData* frame,
177 gfx::Rect device_viewport_damage_rect); 178 gfx::Rect device_viewport_damage_rect);
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 base::Closure tree_activation_callback_; 632 base::Closure tree_activation_callback_;
632 633
633 SharedBitmapManager* shared_bitmap_manager_; 634 SharedBitmapManager* shared_bitmap_manager_;
634 635
635 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 636 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
636 }; 637 };
637 638
638 } // namespace cc 639 } // namespace cc
639 640
640 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 641 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698