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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 LayerTreeHost* layer_tree_host; | 89 LayerTreeHost* layer_tree_host; |
90 bool commit_waits_for_activation; | 90 bool commit_waits_for_activation; |
91 bool main_thread_inside_commit; | 91 bool main_thread_inside_commit; |
92 | 92 |
93 base::TimeTicks last_monotonic_frame_begin_time; | 93 base::TimeTicks last_monotonic_frame_begin_time; |
94 }; | 94 }; |
95 | 95 |
96 struct ReadbackRequest; | 96 struct ReadbackRequest; |
97 | 97 |
98 struct CompositorThreadOnly { | 98 struct CompositorThreadOnly { |
99 CompositorThreadOnly(ThreadProxy* proxy, int layer_tree_host_id); | 99 CompositorThreadOnly(ThreadProxy* proxy, |
100 int layer_tree_host_id, | |
101 RenderingStatsInstrumentation*); | |
danakj
2014/07/17 14:49:35
variable name please
Dominik Grewe
2014/07/18 14:27:20
Done.
| |
100 ~CompositorThreadOnly(); | 102 ~CompositorThreadOnly(); |
101 | 103 |
102 const int layer_tree_host_id; | 104 const int layer_tree_host_id; |
103 | 105 |
104 // Copy of the main thread side contents texture manager for work | 106 // Copy of the main thread side contents texture manager for work |
105 // that needs to be done on the compositor thread. | 107 // that needs to be done on the compositor thread. |
106 PrioritizedResourceManager* contents_texture_manager; | 108 PrioritizedResourceManager* contents_texture_manager; |
107 | 109 |
108 scoped_ptr<Scheduler> scheduler; | 110 scoped_ptr<Scheduler> scheduler; |
109 | 111 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
297 | 299 |
298 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 300 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
299 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 301 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
300 | 302 |
301 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 303 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
302 }; | 304 }; |
303 | 305 |
304 } // namespace cc | 306 } // namespace cc |
305 | 307 |
306 #endif // CC_TREES_THREAD_PROXY_H_ | 308 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |