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