| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 int32 id_request, | 105 int32 id_request, |
| 106 IPC::Message* reply_message); | 106 IPC::Message* reply_message); |
| 107 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, | 107 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, |
| 108 size_t size, | 108 size_t size, |
| 109 int32 id_request, | 109 int32 id_request, |
| 110 IPC::Message* reply_message); | 110 IPC::Message* reply_message); |
| 111 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); | 111 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); |
| 112 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 112 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 113 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); | 113 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); |
| 114 | 114 |
| 115 void OnCreateVideoDecoder(const std::vector<uint32>& configs); | 115 void OnCreateVideoDecoder(const std::vector<uint32>& configs, |
| 116 IPC::Message* reply_message); |
| 116 void OnDestroyVideoDecoder(); | 117 void OnDestroyVideoDecoder(); |
| 117 | 118 |
| 118 void OnSwapBuffers(); | 119 void OnSwapBuffers(); |
| 119 void OnCommandProcessed(); | 120 void OnCommandProcessed(); |
| 120 void OnParseError(); | 121 void OnParseError(); |
| 121 | 122 |
| 122 #if defined(OS_MACOSX) | 123 #if defined(OS_MACOSX) |
| 123 void OnSetWindowSize(const gfx::Size& size); | 124 void OnSetWindowSize(const gfx::Size& size); |
| 124 void SwapBuffersCallback(); | 125 void SwapBuffersCallback(); |
| 125 #endif // defined(OS_MACOSX) | 126 #endif // defined(OS_MACOSX) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 160 |
| 160 // The video decoder associated with this stub, if any. | 161 // The video decoder associated with this stub, if any. |
| 161 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; | 162 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 164 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 #endif // defined(ENABLE_GPU) | 167 #endif // defined(ENABLE_GPU) |
| 167 | 168 |
| 168 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 169 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |