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

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

Issue 23593003: cc: Avoid updating animations in the background without an active tree (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nits Created 7 years, 3 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_unittest_animation.cc ('k') | cc/trees/single_thread_proxy.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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); 86 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
87 bool DoComposite( 87 bool DoComposite(
88 scoped_refptr<cc::ContextProvider> offscreen_context_provider, 88 scoped_refptr<cc::ContextProvider> offscreen_context_provider,
89 base::TimeTicks frame_begin_time, 89 base::TimeTicks frame_begin_time,
90 gfx::Rect device_viewport_damage_rect, 90 gfx::Rect device_viewport_damage_rect,
91 bool for_readback, 91 bool for_readback,
92 LayerTreeHostImpl::FrameData* frame); 92 LayerTreeHostImpl::FrameData* frame);
93 void DidSwapFrame(); 93 void DidSwapFrame();
94 94
95 bool ShouldComposite() const; 95 bool ShouldComposite() const;
96 void UpdateBackgroundAnimateTicking();
96 97
97 // Accessed on main thread only. 98 // Accessed on main thread only.
98 LayerTreeHost* layer_tree_host_; 99 LayerTreeHost* layer_tree_host_;
99 bool created_offscreen_context_provider_; 100 bool created_offscreen_context_provider_;
100 101
101 // Holds the first output surface passed from Start. Should not be used for 102 // Holds the first output surface passed from Start. Should not be used for
102 // anything else. 103 // anything else.
103 scoped_ptr<OutputSurface> first_output_surface_; 104 scoped_ptr<OutputSurface> first_output_surface_;
104 105
105 // Used on the Thread, but checked on main thread during 106 // Used on the Thread, but checked on main thread during
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 private: 172 private:
172 DebugScopedSetImplThread impl_thread_; 173 DebugScopedSetImplThread impl_thread_;
173 DebugScopedSetMainThreadBlocked main_thread_blocked_; 174 DebugScopedSetMainThreadBlocked main_thread_blocked_;
174 175
175 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
176 }; 177 };
177 178
178 } // namespace cc 179 } // namespace cc
179 180
180 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698