| 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_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 int32 id_request, | 107 int32 id_request, |
| 108 IPC::Message* reply_message); | 108 IPC::Message* reply_message); |
| 109 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, | 109 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, |
| 110 size_t size, | 110 size_t size, |
| 111 int32 id_request, | 111 int32 id_request, |
| 112 IPC::Message* reply_message); | 112 IPC::Message* reply_message); |
| 113 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); | 113 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); |
| 114 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 114 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 115 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); | 115 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); |
| 116 | 116 |
| 117 void OnCreateVideoDecoder(const std::vector<uint32>& configs, | 117 void OnCreateVideoDecoder(const std::vector<int32>& configs, |
| 118 IPC::Message* reply_message); | 118 IPC::Message* reply_message); |
| 119 void OnDestroyVideoDecoder(); | 119 void OnDestroyVideoDecoder(); |
| 120 | 120 |
| 121 void OnSwapBuffers(); | 121 void OnSwapBuffers(); |
| 122 void OnCommandProcessed(); | 122 void OnCommandProcessed(); |
| 123 void OnParseError(); | 123 void OnParseError(); |
| 124 | 124 |
| 125 #if defined(OS_MACOSX) | 125 #if defined(OS_MACOSX) |
| 126 void OnSetWindowSize(const gfx::Size& size); | 126 void OnSetWindowSize(const gfx::Size& size); |
| 127 void SwapBuffersCallback(); | 127 void SwapBuffersCallback(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 // The video decoder associated with this stub, if any. | 166 // The video decoder associated with this stub, if any. |
| 167 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; | 167 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; |
| 168 | 168 |
| 169 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 169 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 #endif // defined(ENABLE_GPU) | 172 #endif // defined(ENABLE_GPU) |
| 173 | 173 |
| 174 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 174 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |