| 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 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 static scoped_ptr<Proxy> Create( | 24 static scoped_ptr<Proxy> Create( |
| 25 LayerTreeHost* layer_tree_host, | 25 LayerTreeHost* layer_tree_host, |
| 26 LayerTreeHostSingleThreadClient* client); | 26 LayerTreeHostSingleThreadClient* client); |
| 27 virtual ~SingleThreadProxy(); | 27 virtual ~SingleThreadProxy(); |
| 28 | 28 |
| 29 // Proxy implementation | 29 // Proxy implementation |
| 30 virtual bool CompositeAndReadback(void* pixels, gfx::Rect rect) OVERRIDE; | 30 virtual bool CompositeAndReadback(void* pixels, gfx::Rect rect) OVERRIDE; |
| 31 virtual void FinishAllRendering() OVERRIDE; | 31 virtual void FinishAllRendering() OVERRIDE; |
| 32 virtual bool IsStarted() const OVERRIDE; | 32 virtual bool IsStarted() const OVERRIDE; |
| 33 virtual void SetLayerTreeHostClientReady() OVERRIDE; | 33 virtual void SetLayerTreeHostClientReady( |
| 34 scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; |
| 34 virtual void SetVisible(bool visible) OVERRIDE; | 35 virtual void SetVisible(bool visible) OVERRIDE; |
| 35 virtual void CreateAndInitializeOutputSurface() OVERRIDE; | 36 virtual void CreateAndInitializeOutputSurface() OVERRIDE; |
| 36 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; | 37 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; |
| 37 virtual void SetNeedsAnimate() OVERRIDE; | 38 virtual void SetNeedsAnimate() OVERRIDE; |
| 38 virtual void SetNeedsUpdateLayers() OVERRIDE; | 39 virtual void SetNeedsUpdateLayers() OVERRIDE; |
| 39 virtual void SetNeedsCommit() OVERRIDE; | 40 virtual void SetNeedsCommit() OVERRIDE; |
| 40 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE; | 41 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE; |
| 41 virtual void SetNextCommitWaitsForActivation() OVERRIDE; | 42 virtual void SetNextCommitWaitsForActivation() OVERRIDE; |
| 42 virtual void NotifyInputThrottledUntilCommit() OVERRIDE {} | 43 virtual void NotifyInputThrottledUntilCommit() OVERRIDE {} |
| 43 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 44 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; |
| 44 virtual bool CommitRequested() const OVERRIDE; | 45 virtual bool CommitRequested() const OVERRIDE; |
| 45 virtual bool BeginMainFrameRequested() const OVERRIDE; | 46 virtual bool BeginMainFrameRequested() const OVERRIDE; |
| 46 virtual void MainThreadHasStoppedFlinging() OVERRIDE {} | 47 virtual void MainThreadHasStoppedFlinging() OVERRIDE {} |
| 47 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; | 48 virtual void Start() OVERRIDE; |
| 48 virtual void Stop() OVERRIDE; | 49 virtual void Stop() OVERRIDE; |
| 49 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 50 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 50 virtual void AcquireLayerTextures() OVERRIDE {} | 51 virtual void AcquireLayerTextures() OVERRIDE {} |
| 51 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 52 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 52 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 53 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| 53 virtual bool CommitPendingForTesting() OVERRIDE; | 54 virtual bool CommitPendingForTesting() OVERRIDE; |
| 54 | 55 |
| 55 // LayerTreeHostImplClient implementation | 56 // LayerTreeHostImplClient implementation |
| 56 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 57 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
| 57 virtual void DidSwapBuffersOnImplThread() OVERRIDE; | 58 virtual void DidSwapBuffersOnImplThread() OVERRIDE; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 private: | 182 private: |
| 182 DebugScopedSetImplThread impl_thread_; | 183 DebugScopedSetImplThread impl_thread_; |
| 183 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 184 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 184 | 185 |
| 185 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 186 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 186 }; | 187 }; |
| 187 | 188 |
| 188 } // namespace cc | 189 } // namespace cc |
| 189 | 190 |
| 190 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 191 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |