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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // and needs to be repainted. Takes ownership of task. | 83 // and needs to be repainted. Takes ownership of task. |
84 void SetNotifyRepaintTask(Task* task); | 84 void SetNotifyRepaintTask(Task* task); |
85 | 85 |
86 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and | 86 // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and |
87 // returns a pointer to a GpuVideoDecodeAcceleratorHost. | 87 // returns a pointer to a GpuVideoDecodeAcceleratorHost. |
88 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. | 88 // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost. |
89 // Note that the GpuVideoDecodeAccelerator may still fail to be created in | 89 // Note that the GpuVideoDecodeAccelerator may still fail to be created in |
90 // the GPU process, even if this returns non-NULL. In this case the client is | 90 // the GPU process, even if this returns non-NULL. In this case the client is |
91 // notified of an error later. | 91 // notified of an error later. |
92 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( | 92 scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( |
93 const std::vector<uint32>& configs, | 93 const std::vector<int32>& configs, |
94 media::VideoDecodeAccelerator::Client* client); | 94 media::VideoDecodeAccelerator::Client* client); |
95 | 95 |
96 #if defined(OS_MACOSX) | 96 #if defined(OS_MACOSX) |
97 virtual void SetWindowSize(const gfx::Size& size); | 97 virtual void SetWindowSize(const gfx::Size& size); |
98 #endif | 98 #endif |
99 | 99 |
100 private: | 100 private: |
101 | 101 |
102 // Send an IPC message over the GPU channel. This is private to fully | 102 // Send an IPC message over the GPU channel. This is private to fully |
103 // encapsulate the channel; all callers of this function must explicitly | 103 // encapsulate the channel; all callers of this function must explicitly |
(...skipping 28 matching lines...) Expand all Loading... |
132 | 132 |
133 scoped_ptr<Callback0::Type> swap_buffers_callback_; | 133 scoped_ptr<Callback0::Type> swap_buffers_callback_; |
134 scoped_ptr<Callback0::Type> channel_error_callback_; | 134 scoped_ptr<Callback0::Type> channel_error_callback_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); | 136 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); |
137 }; | 137 }; |
138 | 138 |
139 #endif // ENABLE_GPU | 139 #endif // ENABLE_GPU |
140 | 140 |
141 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 141 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
OLD | NEW |