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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; | 98 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; |
99 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() | 99 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() |
100 OVERRIDE; | 100 OVERRIDE; |
101 virtual void ScheduledActionCommit() OVERRIDE; | 101 virtual void ScheduledActionCommit() OVERRIDE; |
102 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; | 102 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; |
103 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; | 103 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; |
104 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE; | 104 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE; |
105 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; | 105 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; |
106 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE; | 106 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE; |
107 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE; | 107 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE; |
| 108 virtual void PostBeginFrameDeadline(const base::Closure& closure, |
| 109 base::TimeTicks deadline) OVERRIDE; |
108 | 110 |
109 // ResourceUpdateControllerClient implementation | 111 // ResourceUpdateControllerClient implementation |
110 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE; | 112 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE; |
111 | 113 |
112 private: | 114 private: |
113 ThreadProxy(LayerTreeHost* layer_tree_host, | 115 ThreadProxy(LayerTreeHost* layer_tree_host, |
114 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 116 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
115 | 117 |
116 struct BeginFrameAndCommitState { | 118 struct BeginFrameAndCommitState { |
117 BeginFrameAndCommitState(); | 119 BeginFrameAndCommitState(); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 bool renew_tree_priority_on_impl_thread_pending_; | 251 bool renew_tree_priority_on_impl_thread_pending_; |
250 | 252 |
251 RollingTimeDeltaHistory draw_duration_history_; | 253 RollingTimeDeltaHistory draw_duration_history_; |
252 | 254 |
253 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 255 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
254 }; | 256 }; |
255 | 257 |
256 } // namespace cc | 258 } // namespace cc |
257 | 259 |
258 #endif // CC_TREES_THREAD_PROXY_H_ | 260 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |