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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 113 |
114 void OnCreateVideoDecoder( | 114 void OnCreateVideoDecoder( |
115 media::VideoDecodeAccelerator::Profile profile, | 115 media::VideoDecodeAccelerator::Profile profile, |
116 IPC::Message* reply_message); | 116 IPC::Message* reply_message); |
117 void OnDestroyVideoDecoder(int32 decoder_route_id); | 117 void OnDestroyVideoDecoder(int32 decoder_route_id); |
118 | 118 |
| 119 void OnSetSurfaceVisible(bool visible); |
| 120 |
119 #if defined(OS_MACOSX) | 121 #if defined(OS_MACOSX) |
120 void OnSwapBuffers(); | 122 void OnSwapBuffers(); |
121 | 123 |
122 // Returns the id of the current surface that is being rendered to | 124 // Returns the id of the current surface that is being rendered to |
123 // (or 0 if no such surface has been created). | 125 // (or 0 if no such surface has been created). |
124 uint64 GetSurfaceId(); | 126 uint64 GetSurfaceId(); |
125 #endif | 127 #endif |
126 | 128 |
127 void OnCommandProcessed(); | 129 void OnCommandProcessed(); |
128 void OnParseError(); | 130 void OnParseError(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 175 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
174 | 176 |
175 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; | 177 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; |
176 | 178 |
177 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 179 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
178 }; | 180 }; |
179 | 181 |
180 #endif // defined(ENABLE_GPU) | 182 #endif // defined(ENABLE_GPU) |
181 | 183 |
182 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 184 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |