OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); | 188 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); |
189 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 189 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
190 | 190 |
191 void OnCreateVideoDecoder( | 191 void OnCreateVideoDecoder( |
192 media::VideoDecodeAccelerator::Profile profile, | 192 media::VideoDecodeAccelerator::Profile profile, |
193 IPC::Message* reply_message); | 193 IPC::Message* reply_message); |
194 void OnDestroyVideoDecoder(int32 decoder_route_id); | 194 void OnDestroyVideoDecoder(int32 decoder_route_id); |
195 | 195 |
196 void OnSetSurfaceVisible(bool visible); | 196 void OnSetSurfaceVisible(bool visible); |
197 | 197 |
| 198 void OnDiscardBackbuffer(); |
| 199 void OnEnsureBackbuffer(); |
| 200 |
198 void OnReschedule(); | 201 void OnReschedule(); |
199 | 202 |
200 void OnCommandProcessed(); | 203 void OnCommandProcessed(); |
201 void OnParseError(); | 204 void OnParseError(); |
202 | 205 |
203 void ReportState(); | 206 void ReportState(); |
204 | 207 |
205 // The lifetime of objects of this class is managed by a GpuChannel. The | 208 // The lifetime of objects of this class is managed by a GpuChannel. The |
206 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they | 209 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they |
207 // are destroyed. So a raw pointer is safe. | 210 // are destroyed. So a raw pointer is safe. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 245 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
243 | 246 |
244 ObserverList<DestructionObserver> destruction_observers_; | 247 ObserverList<DestructionObserver> destruction_observers_; |
245 | 248 |
246 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 249 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
247 }; | 250 }; |
248 | 251 |
249 #endif // defined(ENABLE_GPU) | 252 #endif // defined(ENABLE_GPU) |
250 | 253 |
251 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 254 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |