| 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_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual ~CommandBufferProxyImpl(); | 46 virtual ~CommandBufferProxyImpl(); |
| 47 | 47 |
| 48 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and | 48 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and |
| 49 // returns a pointer to a GpuVideoDecodeAcceleratorHost. | 49 // returns a pointer to a GpuVideoDecodeAcceleratorHost. |
| 50 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. | 50 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. |
| 51 // Note that the GpuVideoDecodeAccelerator may still fail to be created in | 51 // Note that the GpuVideoDecodeAccelerator may still fail to be created in |
| 52 // the GPU process, even if this returns non-NULL. In this case the client is | 52 // the GPU process, even if this returns non-NULL. In this case the client is |
| 53 // notified of an error later. | 53 // notified of an error later. |
| 54 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( | 54 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( |
| 55 media::VideoCodecProfile profile, | 55 media::VideoCodecProfile profile, |
| 56 const gfx::Size& size, |
| 57 const std::vector<uint8_t>& extra_data, |
| 56 media::VideoDecodeAccelerator::Client* client); | 58 media::VideoDecodeAccelerator::Client* client); |
| 57 | 59 |
| 58 // IPC::Channel::Listener implementation: | 60 // IPC::Channel::Listener implementation: |
| 59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 61 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 60 virtual void OnChannelError() OVERRIDE; | 62 virtual void OnChannelError() OVERRIDE; |
| 61 | 63 |
| 62 // CommandBufferProxy implementation: | 64 // CommandBufferProxy implementation: |
| 63 virtual int GetRouteID() const OVERRIDE; | 65 virtual int GetRouteID() const OVERRIDE; |
| 64 virtual bool Echo(const base::Closure& callback) OVERRIDE; | 66 virtual bool Echo(const base::Closure& callback) OVERRIDE; |
| 65 virtual bool SetSurfaceVisible(bool visible) OVERRIDE; | 67 virtual bool SetSurfaceVisible(bool visible) OVERRIDE; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 memory_allocation_changed_callback_; | 154 memory_allocation_changed_callback_; |
| 153 | 155 |
| 154 GpuConsoleMessageCallback console_message_callback_; | 156 GpuConsoleMessageCallback console_message_callback_; |
| 155 | 157 |
| 156 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 158 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 157 }; | 159 }; |
| 158 | 160 |
| 159 #endif // ENABLE_GPU | 161 #endif // ENABLE_GPU |
| 160 | 162 |
| 161 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 163 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |