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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 private: | 146 private: |
147 void Destroy(); | 147 void Destroy(); |
148 | 148 |
149 // Cleans up and sends reply if OnInitialize failed. | 149 // Cleans up and sends reply if OnInitialize failed. |
150 void OnInitializeFailed(IPC::Message* reply_message); | 150 void OnInitializeFailed(IPC::Message* reply_message); |
151 | 151 |
152 // Message handlers: | 152 // Message handlers: |
153 void OnInitialize(IPC::Message* reply_message); | 153 void OnInitialize(IPC::Message* reply_message); |
154 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); | 154 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); |
| 155 void OnSetSharedStateBuffer(int32 shm_id, IPC::Message* reply_message); |
155 void OnSetParent(int32 parent_route_id, | 156 void OnSetParent(int32 parent_route_id, |
156 uint32 parent_texture_id, | 157 uint32 parent_texture_id, |
157 IPC::Message* reply_message); | 158 IPC::Message* reply_message); |
158 void OnGetState(IPC::Message* reply_message); | 159 void OnGetState(IPC::Message* reply_message); |
159 void OnGetStateFast(IPC::Message* reply_message); | 160 void OnGetStateFast(IPC::Message* reply_message); |
160 void OnAsyncFlush(int32 put_offset, uint32 flush_count); | 161 void OnAsyncFlush(int32 put_offset, uint32 flush_count); |
161 void OnEcho(const IPC::Message& message); | 162 void OnEcho(const IPC::Message& message); |
162 void OnRescheduled(); | 163 void OnRescheduled(); |
163 void OnCreateTransferBuffer(int32 size, | 164 void OnCreateTransferBuffer(int32 size, |
164 int32 id_request, | 165 int32 id_request, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 221 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
221 | 222 |
222 ObserverList<DestructionObserver> destruction_observers_; | 223 ObserverList<DestructionObserver> destruction_observers_; |
223 | 224 |
224 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 225 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
225 }; | 226 }; |
226 | 227 |
227 #endif // defined(ENABLE_GPU) | 228 #endif // defined(ENABLE_GPU) |
228 | 229 |
229 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 230 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |