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<int32>& configs, |
116 IPC::Message* reply_message); | 116 IPC::Message* reply_message); |
117 void OnDestroyVideoDecoder(); | 117 void OnDestroyVideoDecoder(); |
118 | 118 |
119 void OnSwapBuffers(); | 119 void OnSwapBuffers(); |
120 void OnCommandProcessed(); | 120 void OnCommandProcessed(); |
121 void OnParseError(); | 121 void OnParseError(); |
122 | 122 |
123 #if defined(OS_MACOSX) | 123 #if defined(OS_MACOSX) |
124 void OnSetWindowSize(const gfx::Size& size); | 124 void OnSetWindowSize(const gfx::Size& size); |
125 void SwapBuffersCallback(); | 125 void SwapBuffersCallback(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 // The video decoder associated with this stub, if any. | 161 // The video decoder associated with this stub, if any. |
162 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; | 162 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 164 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
165 }; | 165 }; |
166 | 166 |
167 #endif // defined(ENABLE_GPU) | 167 #endif // defined(ENABLE_GPU) |
168 | 168 |
169 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 169 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |