| 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_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // Insert a token into the command buffer and return a token-pair suitable for | 53 // Insert a token into the command buffer and return a token-pair suitable for |
| 54 // sending over IPC for synchronization with the command buffer. | 54 // sending over IPC for synchronization with the command buffer. |
| 55 gpu::ReadWriteTokens SyncTokens(); | 55 gpu::ReadWriteTokens SyncTokens(); |
| 56 | 56 |
| 57 void Send(IPC::Message* message); | 57 void Send(IPC::Message* message); |
| 58 | 58 |
| 59 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); | 59 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); |
| 60 void OnProvidePictureBuffer( | 60 void OnProvidePictureBuffer( |
| 61 uint32 num_requested_buffers, const gfx::Size& buffer_size, int32 mem_type); | 61 uint32 num_requested_buffers, const gfx::Size& buffer_size); |
| 62 void OnDismissPictureBuffer(int32 picture_buffer_id); | 62 void OnDismissPictureBuffer(int32 picture_buffer_id); |
| 63 void OnInitializeDone(); | 63 void OnInitializeDone(); |
| 64 void OnPictureReady(int32 picture_buffer_id, | 64 void OnPictureReady(int32 picture_buffer_id, |
| 65 int32 bitstream_buffer_id, | 65 int32 bitstream_buffer_id); |
| 66 const gfx::Size& visible_size, | |
| 67 const gfx::Size& decoded_size); | |
| 68 void OnFlushDone(); | 66 void OnFlushDone(); |
| 69 void OnResetDone(); | 67 void OnResetDone(); |
| 70 void OnEndOfStream(); | 68 void OnEndOfStream(); |
| 71 void OnErrorNotification(uint32 error); | 69 void OnErrorNotification(uint32 error); |
| 72 | 70 |
| 73 // Sends IPC messages to the Gpu process. | 71 // Sends IPC messages to the Gpu process. |
| 74 IPC::Message::Sender* ipc_sender_; | 72 IPC::Message::Sender* ipc_sender_; |
| 75 | 73 |
| 76 // Route ID for the command buffer associated with the context the GPU Video | 74 // Route ID for the command buffer associated with the context the GPU Video |
| 77 // Decoder uses. | 75 // Decoder uses. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 88 // message processing behind it. | 86 // message processing behind it. |
| 89 gpu::CommandBufferHelper* cmd_buffer_helper_; | 87 gpu::CommandBufferHelper* cmd_buffer_helper_; |
| 90 | 88 |
| 91 // Reference to the client that will receive callbacks from the decoder. | 89 // Reference to the client that will receive callbacks from the decoder. |
| 92 media::VideoDecodeAccelerator::Client* client_; | 90 media::VideoDecodeAccelerator::Client* client_; |
| 93 | 91 |
| 94 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 92 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 95 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |