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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 gfx::GpuPreference gpu_preference() { return gpu_preference_; } | 84 gfx::GpuPreference gpu_preference() { return gpu_preference_; } |
85 | 85 |
86 private: | 86 private: |
87 void Destroy(); | 87 void Destroy(); |
88 | 88 |
89 // Cleans up and sends reply if OnInitialize failed. | 89 // Cleans up and sends reply if OnInitialize failed. |
90 void OnInitializeFailed(IPC::Message* reply_message); | 90 void OnInitializeFailed(IPC::Message* reply_message); |
91 | 91 |
92 // Message handlers: | 92 // Message handlers: |
93 void OnInitialize(IPC::Message* reply_message); | 93 void OnInitialize(base::SharedMemoryHandle ring_buffer, |
94 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); | 94 int32 size, |
| 95 IPC::Message* reply_message); |
95 void OnSetParent(int32 parent_route_id, | 96 void OnSetParent(int32 parent_route_id, |
96 uint32 parent_texture_id, | 97 uint32 parent_texture_id, |
97 IPC::Message* reply_message); | 98 IPC::Message* reply_message); |
98 void OnGetState(IPC::Message* reply_message); | 99 void OnGetState(IPC::Message* reply_message); |
99 void OnGetStateFast(IPC::Message* reply_message); | 100 void OnGetStateFast(IPC::Message* reply_message); |
100 void OnAsyncFlush(int32 put_offset, uint32 flush_count); | 101 void OnAsyncFlush(int32 put_offset, uint32 flush_count); |
101 void OnEcho(const IPC::Message& message); | 102 void OnEcho(const IPC::Message& message); |
102 void OnRescheduled(); | 103 void OnRescheduled(); |
103 void OnCreateTransferBuffer(int32 size, | 104 void OnCreateTransferBuffer(int32 size, |
104 int32 id_request, | 105 int32 id_request, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // Zero or more video decoders owned by this stub, keyed by their | 162 // Zero or more video decoders owned by this stub, keyed by their |
162 // decoder_route_id. | 163 // decoder_route_id. |
163 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 164 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 166 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
166 }; | 167 }; |
167 | 168 |
168 #endif // defined(ENABLE_GPU) | 169 #endif // defined(ENABLE_GPU) |
169 | 170 |
170 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 171 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |