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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual void DidManageTiles() OVERRIDE {} | 81 virtual void DidManageTiles() OVERRIDE {} |
82 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {} | 82 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {} |
83 | 83 |
84 // Called by the legacy path where RenderWidget does the scheduling. | 84 // Called by the legacy path where RenderWidget does the scheduling. |
85 void CompositeImmediately(base::TimeTicks frame_begin_time); | 85 void CompositeImmediately(base::TimeTicks frame_begin_time); |
86 | 86 |
87 private: | 87 private: |
88 SingleThreadProxy(LayerTreeHost* layer_tree_host, | 88 SingleThreadProxy(LayerTreeHost* layer_tree_host, |
89 LayerTreeHostSingleThreadClient* client); | 89 LayerTreeHostSingleThreadClient* client); |
90 | 90 |
91 void OnOutputSurfaceInitializeAttempted(bool success); | |
92 bool CommitAndComposite(base::TimeTicks frame_begin_time, | 91 bool CommitAndComposite(base::TimeTicks frame_begin_time, |
93 const gfx::Rect& device_viewport_damage_rect, | 92 const gfx::Rect& device_viewport_damage_rect, |
94 bool for_readback, | 93 bool for_readback, |
95 LayerTreeHostImpl::FrameData* frame); | 94 LayerTreeHostImpl::FrameData* frame); |
96 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); | 95 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); |
97 bool DoComposite(base::TimeTicks frame_begin_time, | 96 bool DoComposite(base::TimeTicks frame_begin_time, |
98 const gfx::Rect& device_viewport_damage_rect, | 97 const gfx::Rect& device_viewport_damage_rect, |
99 bool for_readback, | 98 bool for_readback, |
100 LayerTreeHostImpl::FrameData* frame); | 99 LayerTreeHostImpl::FrameData* frame); |
101 void DidSwapFrame(); | 100 void DidSwapFrame(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 private: | 175 private: |
177 DebugScopedSetImplThread impl_thread_; | 176 DebugScopedSetImplThread impl_thread_; |
178 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 177 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
179 | 178 |
180 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 179 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace cc | 182 } // namespace cc |
184 | 183 |
185 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 184 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |