| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROXY_IMPL_H_ | 5 #ifndef CC_TREES_PROXY_IMPL_H_ |
| 6 #define CC_TREES_PROXY_IMPL_H_ | 6 #define CC_TREES_PROXY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/completion_event.h" | 10 #include "cc/base/completion_event.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 115 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 116 void DidFinishImplFrame() override; | 116 void DidFinishImplFrame() override; |
| 117 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; | 117 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; |
| 118 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 118 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
| 119 DrawResult ScheduledActionDrawAndSwapForced() override; | 119 DrawResult ScheduledActionDrawAndSwapForced() override; |
| 120 void ScheduledActionCommit() override; | 120 void ScheduledActionCommit() override; |
| 121 void ScheduledActionActivateSyncTree() override; | 121 void ScheduledActionActivateSyncTree() override; |
| 122 void ScheduledActionBeginOutputSurfaceCreation() override; | 122 void ScheduledActionBeginOutputSurfaceCreation() override; |
| 123 void ScheduledActionPrepareTiles() override; | 123 void ScheduledActionPrepareTiles() override; |
| 124 void ScheduledActionInvalidateOutputSurface() override; | 124 void ScheduledActionInvalidateOutputSurface() override; |
| 125 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; | |
| 126 void SendBeginMainFrameNotExpectedSoon() override; | 125 void SendBeginMainFrameNotExpectedSoon() override; |
| 127 | 126 |
| 128 DrawResult DrawAndSwapInternal(bool forced_draw); | 127 DrawResult DrawAndSwapInternal(bool forced_draw); |
| 129 | 128 |
| 130 bool IsImplThread() const; | 129 bool IsImplThread() const; |
| 131 bool IsMainThreadBlocked() const; | 130 bool IsMainThreadBlocked() const; |
| 132 | 131 |
| 133 const int layer_tree_host_id_; | 132 const int layer_tree_host_id_; |
| 134 | 133 |
| 135 scoped_ptr<Scheduler> scheduler_; | 134 scoped_ptr<Scheduler> scheduler_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Use accessors instead of this variable directly. | 168 // Use accessors instead of this variable directly. |
| 170 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 169 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
| 171 BlockedMainCommitOnly& blocked_main_commit(); | 170 BlockedMainCommitOnly& blocked_main_commit(); |
| 172 | 171 |
| 173 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 172 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 } // namespace cc | 175 } // namespace cc |
| 177 | 176 |
| 178 #endif // CC_TREES_PROXY_IMPL_H_ | 177 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |