| 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 26 matching lines...) Expand all Loading... |
| 37 static scoped_ptr<Proxy> Create( | 37 static scoped_ptr<Proxy> Create( |
| 38 LayerTreeHost* layer_tree_host, | 38 LayerTreeHost* layer_tree_host, |
| 39 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 39 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 40 | 40 |
| 41 virtual ~ThreadProxy(); | 41 virtual ~ThreadProxy(); |
| 42 | 42 |
| 43 // Proxy implementation | 43 // Proxy implementation |
| 44 virtual bool CompositeAndReadback(void* pixels, gfx::Rect rect) OVERRIDE; | 44 virtual bool CompositeAndReadback(void* pixels, gfx::Rect rect) OVERRIDE; |
| 45 virtual void FinishAllRendering() OVERRIDE; | 45 virtual void FinishAllRendering() OVERRIDE; |
| 46 virtual bool IsStarted() const OVERRIDE; | 46 virtual bool IsStarted() const OVERRIDE; |
| 47 virtual void SetLayerTreeHostClientReady() OVERRIDE; | 47 virtual void SetLayerTreeHostClientReady( |
| 48 scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; |
| 48 virtual void SetVisible(bool visible) OVERRIDE; | 49 virtual void SetVisible(bool visible) OVERRIDE; |
| 49 virtual void CreateAndInitializeOutputSurface() OVERRIDE; | 50 virtual void CreateAndInitializeOutputSurface() OVERRIDE; |
| 50 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; | 51 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; |
| 51 virtual void SetNeedsAnimate() OVERRIDE; | 52 virtual void SetNeedsAnimate() OVERRIDE; |
| 52 virtual void SetNeedsUpdateLayers() OVERRIDE; | 53 virtual void SetNeedsUpdateLayers() OVERRIDE; |
| 53 virtual void SetNeedsCommit() OVERRIDE; | 54 virtual void SetNeedsCommit() OVERRIDE; |
| 54 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE; | 55 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE; |
| 55 virtual void SetNextCommitWaitsForActivation() OVERRIDE; | 56 virtual void SetNextCommitWaitsForActivation() OVERRIDE; |
| 56 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; | 57 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; |
| 57 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 58 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; |
| 58 virtual bool CommitRequested() const OVERRIDE; | 59 virtual bool CommitRequested() const OVERRIDE; |
| 59 virtual bool BeginMainFrameRequested() const OVERRIDE; | 60 virtual bool BeginMainFrameRequested() const OVERRIDE; |
| 60 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 61 virtual void MainThreadHasStoppedFlinging() OVERRIDE; |
| 61 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; | 62 virtual void Start() OVERRIDE; |
| 62 virtual void Stop() OVERRIDE; | 63 virtual void Stop() OVERRIDE; |
| 63 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 64 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 64 virtual void AcquireLayerTextures() OVERRIDE; | 65 virtual void AcquireLayerTextures() OVERRIDE; |
| 65 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 66 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 66 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 67 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| 67 virtual bool CommitPendingForTesting() OVERRIDE; | 68 virtual bool CommitPendingForTesting() OVERRIDE; |
| 68 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; | 69 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; |
| 69 | 70 |
| 70 // LayerTreeHostImplClient implementation | 71 // LayerTreeHostImplClient implementation |
| 71 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 72 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 287 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 287 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; | 288 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; |
| 288 base::WeakPtrFactory<ThreadProxy> weak_factory_; | 289 base::WeakPtrFactory<ThreadProxy> weak_factory_; |
| 289 | 290 |
| 290 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 291 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 } // namespace cc | 294 } // namespace cc |
| 294 | 295 |
| 295 #endif // CC_TREES_THREAD_PROXY_H_ | 296 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |