| 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 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 namespace gles2 { | 37 namespace gles2 { |
| 38 class ImageManager; | 38 class ImageManager; |
| 39 class MailboxManager; | 39 class MailboxManager; |
| 40 } | 40 } |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace content { | 43 namespace content { |
| 44 | 44 |
| 45 class GpuChannel; | 45 class GpuChannel; |
| 46 class GpuVideoDecodeAccelerator; | 46 class GpuVideoDecodeAccelerator; |
| 47 class GpuVideoEncodeAccelerator; |
| 47 class GpuWatchdog; | 48 class GpuWatchdog; |
| 48 | 49 |
| 49 class GpuCommandBufferStub | 50 class GpuCommandBufferStub |
| 50 : public GpuMemoryManagerClient, | 51 : public GpuMemoryManagerClient, |
| 51 public IPC::Listener, | 52 public IPC::Listener, |
| 52 public IPC::Sender, | 53 public IPC::Sender, |
| 53 public base::SupportsWeakPtr<GpuCommandBufferStub> { | 54 public base::SupportsWeakPtr<GpuCommandBufferStub> { |
| 54 public: | 55 public: |
| 55 class DestructionObserver { | 56 class DestructionObserver { |
| 56 public: | 57 public: |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void OnGetStateFast(IPC::Message* reply_message); | 163 void OnGetStateFast(IPC::Message* reply_message); |
| 163 void OnAsyncFlush(int32 put_offset, uint32 flush_count); | 164 void OnAsyncFlush(int32 put_offset, uint32 flush_count); |
| 164 void OnEcho(const IPC::Message& message); | 165 void OnEcho(const IPC::Message& message); |
| 165 void OnRescheduled(); | 166 void OnRescheduled(); |
| 166 void OnRegisterTransferBuffer(int32 id, | 167 void OnRegisterTransferBuffer(int32 id, |
| 167 base::SharedMemoryHandle transfer_buffer, | 168 base::SharedMemoryHandle transfer_buffer, |
| 168 uint32 size); | 169 uint32 size); |
| 169 void OnDestroyTransferBuffer(int32 id); | 170 void OnDestroyTransferBuffer(int32 id); |
| 170 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 171 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 171 | 172 |
| 172 void OnCreateVideoDecoder( | 173 void OnCreateVideoDecoder(media::VideoCodecProfile profile, |
| 173 media::VideoCodecProfile profile, | 174 IPC::Message* reply_message); |
| 174 IPC::Message* reply_message); | 175 void OnCreateVideoEncoder(media::VideoFrame::Format input_format, |
| 176 const gfx::Size& input_visible_size, |
| 177 media::VideoCodecProfile output_profile, |
| 178 uint32 initial_bitrate, |
| 179 IPC::Message* reply_message); |
| 175 | 180 |
| 176 void OnSetSurfaceVisible(bool visible); | 181 void OnSetSurfaceVisible(bool visible); |
| 177 | 182 |
| 178 void OnEnsureBackbuffer(); | 183 void OnEnsureBackbuffer(); |
| 179 | 184 |
| 180 void OnRetireSyncPoint(uint32 sync_point); | 185 void OnRetireSyncPoint(uint32 sync_point); |
| 181 bool OnWaitSyncPoint(uint32 sync_point); | 186 bool OnWaitSyncPoint(uint32 sync_point); |
| 182 void OnSyncPointRetired(); | 187 void OnSyncPointRetired(); |
| 183 void OnSignalSyncPoint(uint32 sync_point, uint32 id); | 188 void OnSignalSyncPoint(uint32 sync_point, uint32 id); |
| 184 void OnSignalSyncPointAck(uint32 id); | 189 void OnSignalSyncPointAck(uint32 id); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 size_t active_url_hash_; | 270 size_t active_url_hash_; |
| 266 | 271 |
| 267 size_t total_gpu_memory_; | 272 size_t total_gpu_memory_; |
| 268 | 273 |
| 269 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 274 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 270 }; | 275 }; |
| 271 | 276 |
| 272 } // namespace content | 277 } // namespace content |
| 273 | 278 |
| 274 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 279 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |