| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
| 6 #define CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 6 #define CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // and needs to be repainted. Takes ownership of task. | 89 // and needs to be repainted. Takes ownership of task. |
| 90 void SetNotifyRepaintTask(Task* task); | 90 void SetNotifyRepaintTask(Task* task); |
| 91 | 91 |
| 92 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and | 92 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and |
| 93 // returns a pointer to a GpuVideoDecodeAcceleratorHost. | 93 // returns a pointer to a GpuVideoDecodeAcceleratorHost. |
| 94 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. | 94 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. |
| 95 // Note that the GpuVideoDecodeAccelerator may still fail to be created in | 95 // Note that the GpuVideoDecodeAccelerator may still fail to be created in |
| 96 // the GPU process, even if this returns non-NULL. In this case the client is | 96 // the GPU process, even if this returns non-NULL. In this case the client is |
| 97 // notified of an error later. | 97 // notified of an error later. |
| 98 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( | 98 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( |
| 99 const std::vector<uint32>& configs, | 99 const std::vector<int32>& configs, |
| 100 media::VideoDecodeAccelerator::Client* client); | 100 media::VideoDecodeAccelerator::Client* client); |
| 101 | 101 |
| 102 #if defined(OS_MACOSX) | 102 #if defined(OS_MACOSX) |
| 103 virtual void SetWindowSize(const gfx::Size& size); | 103 virtual void SetWindowSize(const gfx::Size& size); |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 | 107 |
| 108 // Send an IPC message over the GPU channel. This is private to fully | 108 // Send an IPC message over the GPU channel. This is private to fully |
| 109 // encapsulate the channel; all callers of this function must explicitly | 109 // encapsulate the channel; all callers of this function must explicitly |
| (...skipping 28 matching lines...) Expand all Loading... |
| 138 | 138 |
| 139 scoped_ptr<Callback0::Type> swap_buffers_callback_; | 139 scoped_ptr<Callback0::Type> swap_buffers_callback_; |
| 140 scoped_ptr<Callback0::Type> channel_error_callback_; | 140 scoped_ptr<Callback0::Type> channel_error_callback_; |
| 141 | 141 |
| 142 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); | 142 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 #endif // ENABLE_GPU | 145 #endif // ENABLE_GPU |
| 146 | 146 |
| 147 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 147 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |