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_ |
|
jam
2012/03/30 21:45:29
nit: update header guards
Fady Samuel
2012/04/02 01:01:09
Done.
| |
| 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) | |
| 10 | |
| 11 #include <string> | 9 #include <string> |
| 12 | 10 |
| 13 #include "base/callback.h" | 11 #include "base/callback.h" |
| 14 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 16 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" | 14 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" |
|
jam
2012/03/30 21:45:29
this is a layering violation, the "gpu" module is
jam
2012/03/30 21:46:51
btw the "checkdeps" failure on the try run is tryi
Fady Samuel
2012/04/02 01:01:09
Done.
| |
| 17 #include "gpu/command_buffer/common/command_buffer.h" | 15 #include "gpu/command_buffer/common/command_buffer.h" |
| 18 #include "gpu/command_buffer/common/command_buffer_shared.h" | 16 #include "gpu/command_buffer/common/command_buffer_shared.h" |
| 19 | 17 |
| 20 struct GpuMemoryAllocationForRenderer; | 18 struct GpuMemoryAllocationForRenderer; |
| 21 | 19 |
| 22 // Client side proxy that forwards messages synchronously to a | 20 // Client side proxy that forwards messages synchronously to a |
| 23 // CommandBufferStub. | 21 // CommandBufferStub. |
| 24 class CommandBufferProxy : public gpu::CommandBuffer { | 22 class GPU_EXPORT CommandBufferProxy : public gpu::CommandBuffer { |
| 25 public: | 23 public: |
| 26 typedef base::Callback<void( | 24 typedef base::Callback<void( |
| 27 const std::string& msg, int id)> GpuConsoleMessageCallback; | 25 const std::string& msg, int id)> GpuConsoleMessageCallback; |
| 28 | 26 |
| 29 CommandBufferProxy() { } | 27 CommandBufferProxy() { } |
| 30 | 28 |
| 31 virtual ~CommandBufferProxy() { } | 29 virtual ~CommandBufferProxy() { } |
| 32 | 30 |
| 33 virtual int GetRouteID() const = 0; | 31 virtual int GetRouteID() const = 0; |
| 34 | 32 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 media::VideoCodecProfile profile, | 68 media::VideoCodecProfile profile, |
| 71 media::VideoDecodeAccelerator::Client* client) = 0; | 69 media::VideoDecodeAccelerator::Client* client) = 0; |
| 72 | 70 |
| 73 virtual void SetOnConsoleMessageCallback( | 71 virtual void SetOnConsoleMessageCallback( |
| 74 const GpuConsoleMessageCallback& callback) = 0; | 72 const GpuConsoleMessageCallback& callback) = 0; |
| 75 | 73 |
| 76 private: | 74 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); | 75 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 #endif // ENABLE_GPU | |
| 81 | |
| 82 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ | 78 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |