| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 IPC::Message* reply_message); | 95 IPC::Message* reply_message); |
| 96 void OnSetParent(int32 parent_route_id, | 96 void OnSetParent(int32 parent_route_id, |
| 97 uint32 parent_texture_id, | 97 uint32 parent_texture_id, |
| 98 IPC::Message* reply_message); | 98 IPC::Message* reply_message); |
| 99 void OnGetState(IPC::Message* reply_message); | 99 void OnGetState(IPC::Message* reply_message); |
| 100 void OnFlush(int32 put_offset, | 100 void OnFlush(int32 put_offset, |
| 101 int32 last_known_get, | 101 int32 last_known_get, |
| 102 uint32 flush_count, | 102 uint32 flush_count, |
| 103 IPC::Message* reply_message); | 103 IPC::Message* reply_message); |
| 104 void OnAsyncFlush(int32 put_offset, uint32 flush_count); | 104 void OnAsyncFlush(int32 put_offset, uint32 flush_count); |
| 105 void OnEcho(const IPC::Message& message); |
| 105 void OnRescheduled(); | 106 void OnRescheduled(); |
| 106 void OnCreateTransferBuffer(int32 size, | 107 void OnCreateTransferBuffer(int32 size, |
| 107 int32 id_request, | 108 int32 id_request, |
| 108 IPC::Message* reply_message); | 109 IPC::Message* reply_message); |
| 109 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, | 110 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, |
| 110 size_t size, | 111 size_t size, |
| 111 int32 id_request, | 112 int32 id_request, |
| 112 IPC::Message* reply_message); | 113 IPC::Message* reply_message); |
| 113 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); | 114 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); |
| 114 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 115 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 115 | 116 |
| 116 void OnCreateVideoDecoder(const std::vector<int32>& configs, | 117 void OnCreateVideoDecoder(const std::vector<int32>& configs, |
| 117 IPC::Message* reply_message); | 118 IPC::Message* reply_message); |
| 118 void OnDestroyVideoDecoder(int32 decoder_route_id); | 119 void OnDestroyVideoDecoder(int32 decoder_route_id); |
| 119 | 120 |
| 121 #if defined(OS_MACOSX) |
| 120 void OnSwapBuffers(); | 122 void OnSwapBuffers(); |
| 123 #endif |
| 124 |
| 121 void OnCommandProcessed(); | 125 void OnCommandProcessed(); |
| 122 void OnParseError(); | 126 void OnParseError(); |
| 123 | 127 |
| 124 void OnResize(gfx::Size size); | 128 void OnResize(gfx::Size size); |
| 125 void ReportState(); | 129 void ReportState(); |
| 126 | 130 |
| 127 // The lifetime of objects of this class is managed by a GpuChannel. The | 131 // The lifetime of objects of this class is managed by a GpuChannel. The |
| 128 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they | 132 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they |
| 129 // are destroyed. So a raw pointer is safe. | 133 // are destroyed. So a raw pointer is safe. |
| 130 GpuChannel* channel_; | 134 GpuChannel* channel_; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 160 // 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 |
| 161 // decoder_route_id. | 165 // decoder_route_id. |
| 162 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 166 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
| 163 | 167 |
| 164 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 168 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 165 }; | 169 }; |
| 166 | 170 |
| 167 #endif // defined(ENABLE_GPU) | 171 #endif // defined(ENABLE_GPU) |
| 168 | 172 |
| 169 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 173 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |