| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // and needs to be repainted. Takes ownership of task. | 84 // and needs to be repainted. Takes ownership of task. |
| 85 void SetNotifyRepaintTask(Task* task); | 85 void SetNotifyRepaintTask(Task* task); |
| 86 | 86 |
| 87 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and | 87 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and |
| 88 // returns a pointer to a GpuVideoDecodeAcceleratorHost. | 88 // returns a pointer to a GpuVideoDecodeAcceleratorHost. |
| 89 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. | 89 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. |
| 90 // Note that the GpuVideoDecodeAccelerator may still fail to be created in | 90 // Note that the GpuVideoDecodeAccelerator may still fail to be created in |
| 91 // the GPU process, even if this returns non-NULL. In this case the client is | 91 // the GPU process, even if this returns non-NULL. In this case the client is |
| 92 // notified of an error later. | 92 // notified of an error later. |
| 93 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( | 93 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( |
| 94 const std::vector<int32>& configs, | 94 media::VideoDecodeAccelerator::Profile profile, |
| 95 media::VideoDecodeAccelerator::Client* client); | 95 media::VideoDecodeAccelerator::Client* client); |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 | 98 |
| 99 // Send an IPC message over the GPU channel. This is private to fully | 99 // Send an IPC message over the GPU channel. This is private to fully |
| 100 // encapsulate the channel; all callers of this function must explicitly | 100 // encapsulate the channel; all callers of this function must explicitly |
| 101 // verify that the context has not been lost. | 101 // verify that the context has not been lost. |
| 102 bool Send(IPC::Message* msg); | 102 bool Send(IPC::Message* msg); |
| 103 | 103 |
| 104 // Message handlers: | 104 // Message handlers: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 135 scoped_ptr<Task> notify_repaint_task_; | 135 scoped_ptr<Task> notify_repaint_task_; |
| 136 | 136 |
| 137 scoped_ptr<Callback0::Type> channel_error_callback_; | 137 scoped_ptr<Callback0::Type> channel_error_callback_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); | 139 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 #endif // ENABLE_GPU | 142 #endif // ENABLE_GPU |
| 143 | 143 |
| 144 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 144 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |