| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 // LayerTreeHostImplClient implementation | 198 // LayerTreeHostImplClient implementation |
| 199 void UpdateRendererCapabilitiesOnImplThread() override; | 199 void UpdateRendererCapabilitiesOnImplThread() override; |
| 200 void DidLoseOutputSurfaceOnImplThread() override; | 200 void DidLoseOutputSurfaceOnImplThread() override; |
| 201 void CommitVSyncParameters(base::TimeTicks timebase, | 201 void CommitVSyncParameters(base::TimeTicks timebase, |
| 202 base::TimeDelta interval) override; | 202 base::TimeDelta interval) override; |
| 203 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 203 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 204 void SetMaxSwapsPendingOnImplThread(int max) override; | 204 void SetMaxSwapsPendingOnImplThread(int max) override; |
| 205 void DidSwapBuffersOnImplThread() override; | 205 void DidSwapBuffersOnImplThread() override; |
| 206 void DidSwapBuffersCompleteOnImplThread() override; | 206 void DidSwapBuffersCompleteOnImplThread() override; |
| 207 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; |
| 207 void OnCanDrawStateChanged(bool can_draw) override; | 208 void OnCanDrawStateChanged(bool can_draw) override; |
| 208 void NotifyReadyToActivate() override; | 209 void NotifyReadyToActivate() override; |
| 209 void NotifyReadyToDraw() override; | 210 void NotifyReadyToDraw() override; |
| 210 // Please call these 3 functions through | 211 // Please call these 3 functions through |
| 211 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 212 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
| 212 // SetNeedsAnimate(). | 213 // SetNeedsAnimate(). |
| 213 void SetNeedsRedrawOnImplThread() override; | 214 void SetNeedsRedrawOnImplThread() override; |
| 214 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 215 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 215 void SetNeedsAnimateOnImplThread() override; | 216 void SetNeedsAnimateOnImplThread() override; |
| 216 void SetNeedsPrepareTilesOnImplThread() override; | 217 void SetNeedsPrepareTilesOnImplThread() override; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 334 |
| 334 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 335 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 335 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 336 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 336 | 337 |
| 337 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 338 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 338 }; | 339 }; |
| 339 | 340 |
| 340 } // namespace cc | 341 } // namespace cc |
| 341 | 342 |
| 342 #endif // CC_TREES_THREAD_PROXY_H_ | 343 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |