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

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

Issue 1297363004: cc: Move animate steps from proxies to LayerTreeHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moveanimatecodetolthi: . Created 5 years, 4 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 | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 LayerImplList will_draw_layers; 220 LayerImplList will_draw_layers;
221 bool has_no_damage; 221 bool has_no_damage;
222 222
223 // RenderPassSink implementation. 223 // RenderPassSink implementation.
224 void AppendRenderPass(scoped_ptr<RenderPass> render_pass) override; 224 void AppendRenderPass(scoped_ptr<RenderPass> render_pass) override;
225 }; 225 };
226 226
227 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason); 227 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason);
228 virtual void BeginCommit(); 228 virtual void BeginCommit();
229 virtual void CommitComplete(); 229 virtual void CommitComplete();
230 virtual void Animate(base::TimeTicks monotonic_time); 230 virtual void Animate();
231 virtual void UpdateAnimationState(bool start_ready_animations); 231 virtual void UpdateAnimationState(bool start_ready_animations);
232 void ActivateAnimations(); 232 void ActivateAnimations();
233 void MainThreadHasStoppedFlinging(); 233 void MainThreadHasStoppedFlinging();
234 void DidAnimateScrollOffset(); 234 void DidAnimateScrollOffset();
235 void SetViewportDamage(const gfx::Rect& damage_rect); 235 void SetViewportDamage(const gfx::Rect& damage_rect);
236 236
237 void SetTreeLayerFilterMutated(int layer_id, 237 void SetTreeLayerFilterMutated(int layer_id,
238 LayerTreeImpl* tree, 238 LayerTreeImpl* tree,
239 const FilterOperations& filters); 239 const FilterOperations& filters);
240 void SetTreeLayerOpacityMutated(int layer_id, 240 void SetTreeLayerOpacityMutated(int layer_id,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 return scroll_affects_scroll_handler_; 427 return scroll_affects_scroll_handler_;
428 } 428 }
429 void QueueSwapPromiseForMainThreadScrollUpdate( 429 void QueueSwapPromiseForMainThreadScrollUpdate(
430 scoped_ptr<SwapPromise> swap_promise); 430 scoped_ptr<SwapPromise> swap_promise);
431 431
432 bool IsActivelyScrolling() const; 432 bool IsActivelyScrolling() const;
433 433
434 virtual void SetVisible(bool visible); 434 virtual void SetVisible(bool visible);
435 bool visible() const { return visible_; } 435 bool visible() const { return visible_; }
436 436
437 bool AnimationsAreVisible() { return visible() && CanDraw(); }
438
439 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } 437 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
440 void SetNeedsAnimate(); 438 void SetNeedsAnimate();
441 void SetNeedsRedraw(); 439 void SetNeedsRedraw();
442 440
443 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; 441 ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
444 442
445 size_t memory_allocation_limit_bytes() const; 443 size_t memory_allocation_limit_bytes() const;
446 444
447 void SetViewportSize(const gfx::Size& device_viewport_size); 445 void SetViewportSize(const gfx::Size& device_viewport_size);
448 gfx::Size device_viewport_size() const { return device_viewport_size_; } 446 gfx::Size device_viewport_size() const { return device_viewport_size_; }
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 824 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
827 825
828 scoped_ptr<Viewport> viewport_; 826 scoped_ptr<Viewport> viewport_;
829 827
830 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 828 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
831 }; 829 };
832 830
833 } // namespace cc 831 } // namespace cc
834 832
835 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 833 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698