| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 void Destroy(); | 128 void Destroy(); |
| 129 | 129 |
| 130 // Cleans up and sends reply if OnInitialize failed. | 130 // Cleans up and sends reply if OnInitialize failed. |
| 131 void OnInitializeFailed(IPC::Message* reply_message); | 131 void OnInitializeFailed(IPC::Message* reply_message); |
| 132 | 132 |
| 133 // Message handlers: | 133 // Message handlers: |
| 134 void OnInitialize(IPC::Message* reply_message); | 134 void OnInitialize(IPC::Message* reply_message); |
| 135 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); | 135 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); |
| 136 void OnSetSharedStateBuffer(int32 shm_id, IPC::Message* reply_message); |
| 136 void OnSetParent(int32 parent_route_id, | 137 void OnSetParent(int32 parent_route_id, |
| 137 uint32 parent_texture_id, | 138 uint32 parent_texture_id, |
| 138 IPC::Message* reply_message); | 139 IPC::Message* reply_message); |
| 139 void OnGetState(IPC::Message* reply_message); | 140 void OnGetState(IPC::Message* reply_message); |
| 140 void OnGetStateFast(IPC::Message* reply_message); | 141 void OnGetStateFast(IPC::Message* reply_message); |
| 141 void OnAsyncFlush(int32 put_offset, uint32 flush_count); | 142 void OnAsyncFlush(int32 put_offset, uint32 flush_count); |
| 142 void OnEcho(const IPC::Message& message); | 143 void OnEcho(const IPC::Message& message); |
| 143 void OnRescheduled(); | 144 void OnRescheduled(); |
| 144 void OnCreateTransferBuffer(int32 size, | 145 void OnCreateTransferBuffer(int32 size, |
| 145 int32 id_request, | 146 int32 id_request, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Zero or more video decoders owned by this stub, keyed by their | 199 // Zero or more video decoders owned by this stub, keyed by their |
| 199 // decoder_route_id. | 200 // decoder_route_id. |
| 200 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 201 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
| 201 | 202 |
| 202 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 203 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 #endif // defined(ENABLE_GPU) | 206 #endif // defined(ENABLE_GPU) |
| 206 | 207 |
| 207 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 208 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |