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.h" | 10 #include "base/time.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual void RenewTreePriority() OVERRIDE {} | 71 virtual void RenewTreePriority() OVERRIDE {} |
72 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 72 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
73 OVERRIDE {} | 73 OVERRIDE {} |
74 | 74 |
75 // Called by the legacy path where RenderWidget does the scheduling. | 75 // Called by the legacy path where RenderWidget does the scheduling. |
76 void CompositeImmediately(base::TimeTicks frame_begin_time); | 76 void CompositeImmediately(base::TimeTicks frame_begin_time); |
77 | 77 |
78 private: | 78 private: |
79 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); | 79 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); |
80 | 80 |
81 bool CommitAndComposite(base::TimeTicks frame_begin_time); | 81 bool CommitAndComposite(base::TimeTicks frame_begin_time, |
| 82 gfx::Rect device_viewport_damage_rect, |
| 83 LayerTreeHostImpl::FrameData* frame); |
82 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); | 84 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); |
83 bool DoComposite( | 85 bool DoComposite( |
84 scoped_refptr<cc::ContextProvider> offscreen_context_provider, | 86 scoped_refptr<cc::ContextProvider> offscreen_context_provider, |
85 base::TimeTicks frame_begin_time); | 87 base::TimeTicks frame_begin_time, |
| 88 gfx::Rect device_viewport_damage_rect, |
| 89 LayerTreeHostImpl::FrameData* frame); |
86 void DidSwapFrame(); | 90 void DidSwapFrame(); |
87 | 91 |
88 bool ShouldComposite() const; | 92 bool ShouldComposite() const; |
89 | 93 |
90 // Accessed on main thread only. | 94 // Accessed on main thread only. |
91 LayerTreeHost* layer_tree_host_; | 95 LayerTreeHost* layer_tree_host_; |
92 bool output_surface_lost_; | 96 bool output_surface_lost_; |
93 bool created_offscreen_context_provider_; | 97 bool created_offscreen_context_provider_; |
94 | 98 |
95 // Holds on to the context between initializeContext() and | 99 // Holds on to the context between initializeContext() and |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 private: | 170 private: |
167 DebugScopedSetImplThread impl_thread_; | 171 DebugScopedSetImplThread impl_thread_; |
168 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 172 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
169 | 173 |
170 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 174 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
171 }; | 175 }; |
172 | 176 |
173 } // namespace cc | 177 } // namespace cc |
174 | 178 |
175 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 179 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |