| 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 MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 public: | 33 public: |
| 34 // |this| is guaranteed not to outlive |impl|. (See comments for |impl_|.) | 34 // |this| is guaranteed not to outlive |impl|. (See comments for |impl_|.) |
| 35 explicit GpuVideoDecodeAcceleratorHost(gpu::CommandBufferProxyImpl* impl); | 35 explicit GpuVideoDecodeAcceleratorHost(gpu::CommandBufferProxyImpl* impl); |
| 36 | 36 |
| 37 // IPC::Listener implementation. | 37 // IPC::Listener implementation. |
| 38 void OnChannelError() override; | 38 void OnChannelError() override; |
| 39 bool OnMessageReceived(const IPC::Message& message) override; | 39 bool OnMessageReceived(const IPC::Message& message) override; |
| 40 | 40 |
| 41 // VideoDecodeAccelerator implementation. | 41 // VideoDecodeAccelerator implementation. |
| 42 bool Initialize(const Config& config, Client* client) override; | 42 bool Initialize(const Config& config, Client* client) override; |
| 43 void SetCdm(int cdm_id) override; | |
| 44 void Decode(const BitstreamBuffer& bitstream_buffer) override; | 43 void Decode(const BitstreamBuffer& bitstream_buffer) override; |
| 45 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; | 44 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; |
| 46 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 45 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 47 void Flush() override; | 46 void Flush() override; |
| 48 void Reset() override; | 47 void Reset() override; |
| 49 void Destroy() override; | 48 void Destroy() override; |
| 50 | 49 |
| 51 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. | 50 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. |
| 52 void OnWillDeleteImpl() override; | 51 void OnWillDeleteImpl() override; |
| 53 | 52 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 95 |
| 97 // WeakPtr factory for posting tasks back to itself. | 96 // WeakPtr factory for posting tasks back to itself. |
| 98 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 97 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 99 | 98 |
| 100 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 99 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace media | 102 } // namespace media |
| 104 | 103 |
| 105 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 104 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |