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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual void RenewTreePriority() OVERRIDE {} | 74 virtual void RenewTreePriority() OVERRIDE {} |
75 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 75 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
76 OVERRIDE {} | 76 OVERRIDE {} |
77 | 77 |
78 // Called by the legacy path where RenderWidget does the scheduling. | 78 // Called by the legacy path where RenderWidget does the scheduling. |
79 void CompositeImmediately(base::TimeTicks frame_begin_time); | 79 void CompositeImmediately(base::TimeTicks frame_begin_time); |
80 | 80 |
81 private: | 81 private: |
82 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); | 82 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); |
83 | 83 |
84 bool CommitAndComposite(base::TimeTicks frame_begin_time); | 84 bool CommitAndComposite(base::TimeTicks frame_begin_time, |
| 85 gfx::Rect device_viewport_damage_rect, |
| 86 LayerTreeHostImpl::FrameData* frame); |
85 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); | 87 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); |
86 bool DoComposite( | 88 bool DoComposite( |
87 scoped_refptr<cc::ContextProvider> offscreen_context_provider, | 89 scoped_refptr<cc::ContextProvider> offscreen_context_provider, |
88 base::TimeTicks frame_begin_time); | 90 base::TimeTicks frame_begin_time, |
| 91 gfx::Rect device_viewport_damage_rect, |
| 92 LayerTreeHostImpl::FrameData* frame); |
89 void DidSwapFrame(); | 93 void DidSwapFrame(); |
90 | 94 |
91 // Accessed on main thread only. | 95 // Accessed on main thread only. |
92 LayerTreeHost* layer_tree_host_; | 96 LayerTreeHost* layer_tree_host_; |
93 bool output_surface_lost_; | 97 bool output_surface_lost_; |
94 bool created_offscreen_context_provider_; | 98 bool created_offscreen_context_provider_; |
95 | 99 |
96 // Holds on to the context between initializeContext() and | 100 // Holds on to the context between initializeContext() and |
97 // InitializeRenderer() calls. Shouldn't be used for anything else. | 101 // InitializeRenderer() calls. Shouldn't be used for anything else. |
98 scoped_ptr<OutputSurface> output_surface_before_initialization_; | 102 scoped_ptr<OutputSurface> output_surface_before_initialization_; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 private: | 174 private: |
171 DebugScopedSetImplThread impl_thread_; | 175 DebugScopedSetImplThread impl_thread_; |
172 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 176 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
173 | 177 |
174 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
175 }; | 179 }; |
176 | 180 |
177 } // namespace cc | 181 } // namespace cc |
178 | 182 |
179 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |