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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 void UpdateTopControlsState(TopControlsState constraints, | 180 void UpdateTopControlsState(TopControlsState constraints, |
181 TopControlsState current, | 181 TopControlsState current, |
182 bool animate) override; | 182 bool animate) override; |
183 | 183 |
184 // LayerTreeHostImplClient implementation | 184 // LayerTreeHostImplClient implementation |
185 void UpdateRendererCapabilitiesOnImplThread() override; | 185 void UpdateRendererCapabilitiesOnImplThread() override; |
186 void DidLoseOutputSurfaceOnImplThread() override; | 186 void DidLoseOutputSurfaceOnImplThread() override; |
187 void CommitVSyncParameters(base::TimeTicks timebase, | 187 void CommitVSyncParameters(base::TimeTicks timebase, |
188 base::TimeDelta interval) override; | 188 base::TimeDelta interval) override; |
189 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 189 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
190 void SetMaxSwapsPendingOnImplThread(int max) override; | |
191 void DidSwapBuffersOnImplThread() override; | 190 void DidSwapBuffersOnImplThread() override; |
192 void DidSwapBuffersCompleteOnImplThread() override; | 191 void DidSwapBuffersCompleteOnImplThread() override; |
193 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; | 192 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; |
194 void OnCanDrawStateChanged(bool can_draw) override; | 193 void OnCanDrawStateChanged(bool can_draw) override; |
195 void NotifyReadyToActivate() override; | 194 void NotifyReadyToActivate() override; |
196 void NotifyReadyToDraw() override; | 195 void NotifyReadyToDraw() override; |
197 // Please call these 3 functions through | 196 // Please call these 3 functions through |
198 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 197 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
199 // SetNeedsAnimate(). | 198 // SetNeedsAnimate(). |
200 void SetNeedsRedrawOnImplThread() override; | 199 void SetNeedsRedrawOnImplThread() override; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 325 |
327 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 326 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
328 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 327 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
329 | 328 |
330 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 329 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
331 }; | 330 }; |
332 | 331 |
333 } // namespace cc | 332 } // namespace cc |
334 | 333 |
335 #endif // CC_TREES_THREAD_PROXY_H_ | 334 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |