| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 67 virtual void AcquireLayerTextures() OVERRIDE; | 67 virtual void AcquireLayerTextures() OVERRIDE; |
| 68 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 68 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 69 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 69 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| 70 virtual bool CommitPendingForTesting() OVERRIDE; | 70 virtual bool CommitPendingForTesting() OVERRIDE; |
| 71 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; | 71 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; |
| 72 | 72 |
| 73 // LayerTreeHostImplClient implementation | 73 // LayerTreeHostImplClient implementation |
| 74 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; | 74 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; |
| 75 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 75 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
| 76 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 76 virtual void SetMaxSwapsPending(int max) OVERRIDE; |
| 77 virtual void DidSwapBuffersOnImplThread() OVERRIDE; |
| 77 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; | 78 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; |
| 78 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; | 79 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; |
| 79 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 80 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
| 80 virtual void NotifyReadyToActivate() OVERRIDE; | 81 virtual void NotifyReadyToActivate() OVERRIDE; |
| 81 // Please call these 2 functions through | 82 // Please call these 2 functions through |
| 82 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). | 83 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). |
| 83 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 84 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
| 84 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) | 85 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) |
| 85 OVERRIDE; | 86 OVERRIDE; |
| 86 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 87 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 312 |
| 312 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 313 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 313 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 314 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 314 | 315 |
| 315 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 316 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 316 }; | 317 }; |
| 317 | 318 |
| 318 } // namespace cc | 319 } // namespace cc |
| 319 | 320 |
| 320 #endif // CC_TREES_THREAD_PROXY_H_ | 321 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |