OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ | 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ |
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ | 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "content/renderer/render_view_impl.h" | 12 #include "content/renderer/render_view_impl.h" |
13 #include "ipc/ipc_channel_proxy.h" | 13 #include "ipc/ipc_channel_proxy.h" |
14 #include "webkit/glue/webthread_impl.h" | 14 #include "webkit/glue/webthread_impl.h" |
15 | 15 |
16 namespace WebKit { | 16 namespace WebKit { |
17 class WebInputEvent; | 17 class WebInputEvent; |
18 } | 18 } |
19 | 19 |
20 class InputEventFilter; | 20 class InputEventFilter; |
21 | 21 |
| 22 namespace content { |
| 23 |
22 // The CompositorThread class manages the background thread for the compositor. | 24 // The CompositorThread class manages the background thread for the compositor. |
23 // The CompositorThread instance can be assumed to outlive the background | 25 // The CompositorThread instance can be assumed to outlive the background |
24 // thread it manages. | 26 // thread it manages. |
25 class CompositorThread { | 27 class CompositorThread { |
26 public: | 28 public: |
27 // |main_listener| refers to the central IPC message listener that lives on | 29 // |main_listener| refers to the central IPC message listener that lives on |
28 // the main thread, where all incoming IPC messages are first handled. | 30 // the main thread, where all incoming IPC messages are first handled. |
29 explicit CompositorThread(IPC::Listener* main_listener); | 31 explicit CompositorThread(IPC::Listener* main_listener); |
30 ~CompositorThread(); | 32 ~CompositorThread(); |
31 | 33 |
(...skipping 29 matching lines...) Expand all Loading... |
61 friend class InputHandlerWrapper; | 63 friend class InputHandlerWrapper; |
62 | 64 |
63 typedef std::map<int, // routing_id | 65 typedef std::map<int, // routing_id |
64 scoped_refptr<InputHandlerWrapper> > InputHandlerMap; | 66 scoped_refptr<InputHandlerWrapper> > InputHandlerMap; |
65 InputHandlerMap input_handlers_; | 67 InputHandlerMap input_handlers_; |
66 | 68 |
67 webkit_glue::WebThreadImpl thread_; | 69 webkit_glue::WebThreadImpl thread_; |
68 scoped_refptr<InputEventFilter> filter_; | 70 scoped_refptr<InputEventFilter> filter_; |
69 }; | 71 }; |
70 | 72 |
| 73 } // namespace content |
| 74 |
71 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ | 75 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ |
OLD | NEW |