| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CHROME_GPU_GPU_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 <vector> | 11 #include <vector> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "base/weak_ptr.h" | 15 #include "base/weak_ptr.h" |
| 16 #include "gfx/native_widget_types.h" | |
| 17 #include "gfx/size.h" | |
| 18 #include "gpu/command_buffer/service/command_buffer_service.h" | 16 #include "gpu/command_buffer/service/command_buffer_service.h" |
| 19 #include "gpu/command_buffer/service/gpu_processor.h" | 17 #include "gpu/command_buffer/service/gpu_processor.h" |
| 20 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
| 21 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
| 20 #include "ui/gfx/native_widget_types.h" |
| 21 #include "ui/gfx/size.h" |
| 22 | 22 |
| 23 class GpuChannel; | 23 class GpuChannel; |
| 24 | 24 |
| 25 class GpuCommandBufferStub | 25 class GpuCommandBufferStub |
| 26 : public IPC::Channel::Listener, | 26 : public IPC::Channel::Listener, |
| 27 public IPC::Message::Sender, | 27 public IPC::Message::Sender, |
| 28 public base::SupportsWeakPtr<GpuCommandBufferStub> { | 28 public base::SupportsWeakPtr<GpuCommandBufferStub> { |
| 29 public: | 29 public: |
| 30 GpuCommandBufferStub(GpuChannel* channel, | 30 GpuCommandBufferStub(GpuChannel* channel, |
| 31 gfx::PluginWindowHandle handle, | 31 gfx::PluginWindowHandle handle, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 118 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
| 119 scoped_ptr<gpu::GPUProcessor> processor_; | 119 scoped_ptr<gpu::GPUProcessor> processor_; |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 121 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 #endif // defined(ENABLE_GPU) | 124 #endif // defined(ENABLE_GPU) |
| 125 | 125 |
| 126 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 126 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |