OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
6 #define CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 6 #define CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
10 | 10 |
11 #include "app/surface/transport_dib.h" | 11 #include "app/surface/transport_dib.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "gfx/native_widget_types.h" | |
14 #include "gpu/command_buffer/common/command_buffer.h" | 13 #include "gpu/command_buffer/common/command_buffer.h" |
15 #include "gpu/command_buffer/service/command_buffer_service.h" | 14 #include "gpu/command_buffer/service/command_buffer_service.h" |
16 #include "gpu/command_buffer/service/gpu_processor.h" | 15 #include "gpu/command_buffer/service/gpu_processor.h" |
17 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
18 #include "ipc/ipc_message.h" | 17 #include "ipc/ipc_message.h" |
| 18 #include "ui/gfx/native_widget_types.h" |
19 | 19 |
20 class PluginChannel; | 20 class PluginChannel; |
21 | 21 |
22 class CommandBufferService; | 22 class CommandBufferService; |
23 | 23 |
24 class CommandBufferStub : public IPC::Channel::Listener, | 24 class CommandBufferStub : public IPC::Channel::Listener, |
25 public IPC::Message::Sender { | 25 public IPC::Message::Sender { |
26 public: | 26 public: |
27 CommandBufferStub(PluginChannel* channel, | 27 CommandBufferStub(PluginChannel* channel, |
28 int plugin_host_route_id, | 28 int plugin_host_route_id, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int plugin_host_route_id_; | 73 int plugin_host_route_id_; |
74 gfx::PluginWindowHandle window_; | 74 gfx::PluginWindowHandle window_; |
75 int route_id_; | 75 int route_id_; |
76 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 76 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
77 scoped_ptr<gpu::GPUProcessor> processor_; | 77 scoped_ptr<gpu::GPUProcessor> processor_; |
78 }; | 78 }; |
79 | 79 |
80 #endif // ENABLE_GPU | 80 #endif // ENABLE_GPU |
81 | 81 |
82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |