| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, | 109 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, |
| 110 size_t size, | 110 size_t size, |
| 111 int32 id_request, | 111 int32 id_request, |
| 112 IPC::Message* reply_message); | 112 IPC::Message* reply_message); |
| 113 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); | 113 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); |
| 114 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 114 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 115 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); | 115 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); |
| 116 | 116 |
| 117 void OnCreateVideoDecoder(const std::vector<int32>& configs, | 117 void OnCreateVideoDecoder(const std::vector<int32>& configs, |
| 118 IPC::Message* reply_message); | 118 IPC::Message* reply_message); |
| 119 void OnDestroyVideoDecoder(); | 119 void OnDestroyVideoDecoder(int32 decoder_route_id); |
| 120 | 120 |
| 121 void OnSwapBuffers(); | 121 void OnSwapBuffers(); |
| 122 void OnCommandProcessed(); | 122 void OnCommandProcessed(); |
| 123 void OnParseError(); | 123 void OnParseError(); |
| 124 | 124 |
| 125 #if defined(OS_MACOSX) | 125 #if defined(OS_MACOSX) |
| 126 void OnSetWindowSize(const gfx::Size& size); | 126 void OnSetWindowSize(const gfx::Size& size); |
| 127 void SwapBuffersCallback(); | 127 void SwapBuffersCallback(); |
| 128 #endif // defined(OS_MACOSX) | 128 #endif // defined(OS_MACOSX) |
| 129 | 129 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 156 scoped_ptr<gpu::GpuScheduler> scheduler_; | 156 scoped_ptr<gpu::GpuScheduler> scheduler_; |
| 157 | 157 |
| 158 // SetParent may be called before Initialize, in which case we need to keep | 158 // SetParent may be called before Initialize, in which case we need to keep |
| 159 // around the parent stub, so that Initialize can set the parent correctly. | 159 // around the parent stub, so that Initialize can set the parent correctly. |
| 160 base::WeakPtr<GpuCommandBufferStub> parent_stub_for_initialization_; | 160 base::WeakPtr<GpuCommandBufferStub> parent_stub_for_initialization_; |
| 161 uint32 parent_texture_for_initialization_; | 161 uint32 parent_texture_for_initialization_; |
| 162 | 162 |
| 163 GpuWatchdog* watchdog_; | 163 GpuWatchdog* watchdog_; |
| 164 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; | 164 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; |
| 165 | 165 |
| 166 // The video decoder associated with this stub, if any. | 166 // Zero or more video decoders owned by this stub, keyed by their |
| 167 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; | 167 // decoder_route_id. |
| 168 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
| 168 | 169 |
| 169 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 170 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 #endif // defined(ENABLE_GPU) | 173 #endif // defined(ENABLE_GPU) |
| 173 | 174 |
| 174 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 175 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |