Chromium Code Reviews| 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_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
|
piman
2012/03/30 17:58:37
nit: While you're here, do you mind removing this
Fady Samuel
2012/03/30 18:40:05
Done.
| |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" | 16 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" |
| 17 #include "gpu/command_buffer/common/command_buffer.h" | 17 #include "gpu/command_buffer/common/command_buffer.h" |
| 18 #include "gpu/command_buffer/common/command_buffer_shared.h" | 18 #include "gpu/command_buffer/common/command_buffer_shared.h" |
| 19 | 19 |
| 20 struct GpuMemoryAllocationForRenderer; | 20 struct GpuMemoryAllocationForRenderer; |
| 21 | 21 |
| 22 // Client side proxy that forwards messages synchronously to a | 22 // Client side proxy that forwards messages synchronously to a |
| 23 // CommandBufferStub. | 23 // CommandBufferStub. |
| 24 class CommandBufferProxy : public gpu::CommandBuffer { | 24 class GPU_EXPORT CommandBufferProxy : public gpu::CommandBuffer { |
| 25 public: | 25 public: |
| 26 typedef base::Callback<void( | 26 typedef base::Callback<void( |
| 27 const std::string& msg, int id)> GpuConsoleMessageCallback; | 27 const std::string& msg, int id)> GpuConsoleMessageCallback; |
| 28 | 28 |
| 29 CommandBufferProxy() { } | 29 CommandBufferProxy() { } |
| 30 | 30 |
| 31 virtual ~CommandBufferProxy() { } | 31 virtual ~CommandBufferProxy() { } |
| 32 | 32 |
| 33 virtual int GetRouteID() const = 0; | 33 virtual int GetRouteID() const = 0; |
| 34 | 34 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 virtual void SetOnConsoleMessageCallback( | 73 virtual void SetOnConsoleMessageCallback( |
| 74 const GpuConsoleMessageCallback& callback) = 0; | 74 const GpuConsoleMessageCallback& callback) = 0; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); | 77 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // ENABLE_GPU | 80 #endif // ENABLE_GPU |
| 81 | 81 |
| 82 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ | 82 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |