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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 42 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
43 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 43 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
44 | 44 |
45 virtual ~ThreadProxy(); | 45 virtual ~ThreadProxy(); |
46 | 46 |
47 struct BeginMainFrameAndCommitState { | 47 struct BeginMainFrameAndCommitState { |
48 BeginMainFrameAndCommitState(); | 48 BeginMainFrameAndCommitState(); |
49 ~BeginMainFrameAndCommitState(); | 49 ~BeginMainFrameAndCommitState(); |
50 | 50 |
51 unsigned int begin_frame_id; | 51 unsigned int begin_frame_id; |
52 base::TimeTicks monotonic_frame_begin_time; | 52 BeginFrameArgs begin_frame_args; |
53 scoped_ptr<ScrollAndScaleSet> scroll_info; | 53 scoped_ptr<ScrollAndScaleSet> scroll_info; |
54 size_t memory_allocation_limit_bytes; | 54 size_t memory_allocation_limit_bytes; |
55 int memory_allocation_priority_cutoff; | 55 int memory_allocation_priority_cutoff; |
56 bool evicted_ui_resources; | 56 bool evicted_ui_resources; |
57 }; | 57 }; |
58 | 58 |
59 struct MainThreadOnly { | 59 struct MainThreadOnly { |
60 MainThreadOnly(ThreadProxy* proxy, int layer_tree_host_id); | 60 MainThreadOnly(ThreadProxy* proxy, int layer_tree_host_id); |
61 ~MainThreadOnly(); | 61 ~MainThreadOnly(); |
62 | 62 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 299 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
300 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 300 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
301 | 301 |
302 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 302 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
303 }; | 303 }; |
304 | 304 |
305 } // namespace cc | 305 } // namespace cc |
306 | 306 |
307 #endif // CC_TREES_THREAD_PROXY_H_ | 307 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |