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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 void SetDeferCommitsOnImpl(bool defer_commits) const override; | 284 void SetDeferCommitsOnImpl(bool defer_commits) const override; |
285 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; | 285 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; |
286 void SetVisibleOnImpl(CompletionEvent* completion, bool visible) override; | 286 void SetVisibleOnImpl(CompletionEvent* completion, bool visible) override; |
287 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; | 287 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; |
288 void FinishGLOnImpl(CompletionEvent* completion) override; | 288 void FinishGLOnImpl(CompletionEvent* completion) override; |
289 void MainFrameWillHappenOnImplForTesting( | 289 void MainFrameWillHappenOnImplForTesting( |
290 CompletionEvent* completion, | 290 CompletionEvent* completion, |
291 bool* main_frame_will_happen) override; | 291 bool* main_frame_will_happen) override; |
292 void SetNeedsCommitOnImpl() override; | 292 void SetNeedsCommitOnImpl() override; |
293 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; | 293 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; |
294 void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) override; | 294 void BeginMainFrameAbortedOnImpl( |
295 void StartCommitOnImpl(CompletionEvent* completion) override; | 295 CommitEarlyOutReason reason, |
| 296 base::TimeTicks main_thread_start_time) override; |
| 297 void StartCommitOnImpl(CompletionEvent* completion, |
| 298 base::TimeTicks main_thread_start_time) override; |
296 | 299 |
297 // Returns |true| if the request was actually sent, |false| if one was | 300 // Returns |true| if the request was actually sent, |false| if one was |
298 // already outstanding. | 301 // already outstanding. |
299 bool SendCommitRequestToImplThreadIfNeeded( | 302 bool SendCommitRequestToImplThreadIfNeeded( |
300 CommitPipelineStage required_stage); | 303 CommitPipelineStage required_stage); |
301 | 304 |
302 // Called on impl thread. | 305 // Called on impl thread. |
303 struct SchedulerStateRequest; | 306 struct SchedulerStateRequest; |
304 | 307 |
305 void InitializeImplOnImplThread(CompletionEvent* completion); | 308 void InitializeImplOnImplThread(CompletionEvent* completion); |
(...skipping 20 matching lines...) Expand all Loading... |
326 | 329 |
327 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 330 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
328 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 331 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
329 | 332 |
330 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 333 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
331 }; | 334 }; |
332 | 335 |
333 } // namespace cc | 336 } // namespace cc |
334 | 337 |
335 #endif // CC_TREES_THREAD_PROXY_H_ | 338 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |