| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual bool CommitRequested() const OVERRIDE; | 61 virtual bool CommitRequested() const OVERRIDE; |
| 62 virtual bool BeginMainFrameRequested() const OVERRIDE; | 62 virtual bool BeginMainFrameRequested() const OVERRIDE; |
| 63 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 63 virtual void MainThreadHasStoppedFlinging() OVERRIDE; |
| 64 virtual void Start() OVERRIDE; | 64 virtual void Start() OVERRIDE; |
| 65 virtual void Stop() OVERRIDE; | 65 virtual void Stop() OVERRIDE; |
| 66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 67 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 67 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 68 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; | 68 virtual void SetDebugState(const LayerTreeDebugState& debug_state) 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> SchedulerAsValueForTesting() 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 CommitVSyncParameters(base::TimeTicks timebase, | 76 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 77 base::TimeDelta interval) OVERRIDE; | 77 base::TimeDelta interval) OVERRIDE; |
| 78 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE; | 78 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE; |
| 79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; | 79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; |
| 80 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; | 80 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; |
| 81 virtual void DidSwapBuffersOnImplThread() OVERRIDE; | 81 virtual void DidSwapBuffersOnImplThread() OVERRIDE; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 bool* success, | 181 bool* success, |
| 182 RendererCapabilities* capabilities); | 182 RendererCapabilities* capabilities); |
| 183 void FinishGLOnImplThread(CompletionEvent* completion); | 183 void FinishGLOnImplThread(CompletionEvent* completion); |
| 184 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 184 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
| 185 DrawSwapReadbackResult DrawSwapReadbackInternal(bool forced_draw, | 185 DrawSwapReadbackResult DrawSwapReadbackInternal(bool forced_draw, |
| 186 bool swap_requested, | 186 bool swap_requested, |
| 187 bool readback_requested); | 187 bool readback_requested); |
| 188 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 188 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| 189 void CheckOutputSurfaceStatusOnImplThread(); | 189 void CheckOutputSurfaceStatusOnImplThread(); |
| 190 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 190 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
| 191 void SchedulerStateAsValueOnImplThreadForTesting( | 191 void SchedulerAsValueOnImplThreadForTesting(SchedulerStateRequest* request); |
| 192 SchedulerStateRequest* request); | |
| 193 void AsValueOnImplThread(CompletionEvent* completion, | 192 void AsValueOnImplThread(CompletionEvent* completion, |
| 194 base::DictionaryValue* state) const; | 193 base::DictionaryValue* state) const; |
| 195 void RenewTreePriorityOnImplThread(); | 194 void RenewTreePriorityOnImplThread(); |
| 196 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); | 195 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); |
| 197 void MainThreadHasStoppedFlingingOnImplThread(); | 196 void MainThreadHasStoppedFlingingOnImplThread(); |
| 198 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 197 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
| 199 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); | 198 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); |
| 200 | 199 |
| 201 LayerTreeHost* layer_tree_host(); | 200 LayerTreeHost* layer_tree_host(); |
| 202 const LayerTreeHost* layer_tree_host() const; | 201 const LayerTreeHost* layer_tree_host() const; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 306 |
| 308 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 307 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 309 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 308 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 310 | 309 |
| 311 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 310 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 312 }; | 311 }; |
| 313 | 312 |
| 314 } // namespace cc | 313 } // namespace cc |
| 315 | 314 |
| 316 #endif // CC_TREES_THREAD_PROXY_H_ | 315 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |