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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 ThreadProxy(LayerTreeHost* layer_tree_host, | 114 ThreadProxy(LayerTreeHost* layer_tree_host, |
115 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 115 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
116 | 116 |
117 struct BeginFrameAndCommitState { | 117 struct BeginFrameAndCommitState { |
118 BeginFrameAndCommitState(); | 118 BeginFrameAndCommitState(); |
119 ~BeginFrameAndCommitState(); | 119 ~BeginFrameAndCommitState(); |
120 | 120 |
121 base::TimeTicks monotonic_frame_begin_time; | 121 base::TimeTicks monotonic_frame_begin_time; |
122 scoped_ptr<ScrollAndScaleSet> scroll_info; | 122 scoped_ptr<ScrollAndScaleSet> scroll_info; |
123 size_t memory_allocation_limit_bytes; | 123 size_t memory_allocation_limit_bytes; |
| 124 uint64 ui_resource_eviction_count; |
124 }; | 125 }; |
125 | 126 |
126 // Called on main thread. | 127 // Called on main thread. |
127 void BeginFrameOnMainThread( | 128 void BeginFrameOnMainThread( |
128 scoped_ptr<BeginFrameAndCommitState> begin_frame_state); | 129 scoped_ptr<BeginFrameAndCommitState> begin_frame_state); |
129 void DidCommitAndDrawFrame(); | 130 void DidCommitAndDrawFrame(); |
130 void DidCompleteSwapBuffers(); | 131 void DidCompleteSwapBuffers(); |
131 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue, | 132 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue, |
132 base::Time wall_clock_time); | 133 base::Time wall_clock_time); |
133 void DoCreateAndInitializeOutputSurface(); | 134 void DoCreateAndInitializeOutputSurface(); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 // activation_duration_history_. | 267 // activation_duration_history_. |
267 base::TimeTicks begin_frame_sent_to_main_thread_time_; | 268 base::TimeTicks begin_frame_sent_to_main_thread_time_; |
268 base::TimeTicks commit_complete_time_; | 269 base::TimeTicks commit_complete_time_; |
269 | 270 |
270 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 271 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
271 }; | 272 }; |
272 | 273 |
273 } // namespace cc | 274 } // namespace cc |
274 | 275 |
275 #endif // CC_TREES_THREAD_PROXY_H_ | 276 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |