| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 void SetDeferCommits(bool defer_commits) override; | 168 void SetDeferCommits(bool defer_commits) override; |
| 169 bool CommitRequested() const override; | 169 bool CommitRequested() const override; |
| 170 bool BeginMainFrameRequested() const override; | 170 bool BeginMainFrameRequested() const override; |
| 171 void MainThreadHasStoppedFlinging() override; | 171 void MainThreadHasStoppedFlinging() override; |
| 172 void Start() override; | 172 void Start() override; |
| 173 void Stop() override; | 173 void Stop() override; |
| 174 size_t MaxPartialTextureUpdates() const override; | 174 size_t MaxPartialTextureUpdates() const override; |
| 175 void ForceSerializeOnSwapBuffers() override; | 175 void ForceSerializeOnSwapBuffers() override; |
| 176 bool SupportsImplScrolling() const override; | 176 bool SupportsImplScrolling() const override; |
| 177 void SetDebugState(const LayerTreeDebugState& debug_state) override; | 177 void SetDebugState(const LayerTreeDebugState& debug_state) override; |
| 178 void AsValueInto(base::trace_event::TracedValue* value) const override; | |
| 179 bool MainFrameWillHappenForTesting() override; | 178 bool MainFrameWillHappenForTesting() override; |
| 180 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 179 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 181 | 180 |
| 182 // LayerTreeHostImplClient implementation | 181 // LayerTreeHostImplClient implementation |
| 183 void UpdateRendererCapabilitiesOnImplThread() override; | 182 void UpdateRendererCapabilitiesOnImplThread() override; |
| 184 void DidLoseOutputSurfaceOnImplThread() override; | 183 void DidLoseOutputSurfaceOnImplThread() override; |
| 185 void CommitVSyncParameters(base::TimeTicks timebase, | 184 void CommitVSyncParameters(base::TimeTicks timebase, |
| 186 base::TimeDelta interval) override; | 185 base::TimeDelta interval) override; |
| 187 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 186 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 188 void SetMaxSwapsPendingOnImplThread(int max) override; | 187 void SetMaxSwapsPendingOnImplThread(int max) override; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 bool* has_initialized_output_surface); | 271 bool* has_initialized_output_surface); |
| 273 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); | 272 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); |
| 274 void InitializeOutputSurfaceOnImplThread( | 273 void InitializeOutputSurfaceOnImplThread( |
| 275 scoped_ptr<OutputSurface> output_surface); | 274 scoped_ptr<OutputSurface> output_surface); |
| 276 void FinishGLOnImplThread(CompletionEvent* completion); | 275 void FinishGLOnImplThread(CompletionEvent* completion); |
| 277 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 276 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
| 278 DrawResult DrawSwapInternal(bool forced_draw); | 277 DrawResult DrawSwapInternal(bool forced_draw); |
| 279 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 278 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| 280 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, | 279 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, |
| 281 bool* main_frame_will_happen); | 280 bool* main_frame_will_happen); |
| 282 void AsValueOnImplThread(CompletionEvent* completion, | |
| 283 base::trace_event::TracedValue* state) const; | |
| 284 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); | 281 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); |
| 285 void MainThreadHasStoppedFlingingOnImplThread(); | 282 void MainThreadHasStoppedFlingingOnImplThread(); |
| 286 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 283 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
| 287 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); | 284 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); |
| 288 void SetDeferCommitsOnImplThread(bool defer_commits) const; | 285 void SetDeferCommitsOnImplThread(bool defer_commits) const; |
| 289 | 286 |
| 290 LayerTreeHost* layer_tree_host(); | 287 LayerTreeHost* layer_tree_host(); |
| 291 const LayerTreeHost* layer_tree_host() const; | 288 const LayerTreeHost* layer_tree_host() const; |
| 292 | 289 |
| 293 // Use accessors instead of this variable directly. | 290 // Use accessors instead of this variable directly. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 304 | 301 |
| 305 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 302 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 306 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 303 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 307 | 304 |
| 308 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 305 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 309 }; | 306 }; |
| 310 | 307 |
| 311 } // namespace cc | 308 } // namespace cc |
| 312 | 309 |
| 313 #endif // CC_TREES_THREAD_PROXY_H_ | 310 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |