OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |