| 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_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_COMMON_GPU_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 26 matching lines...) Expand all Loading... |
| 37 void OnChannelError() override; | 37 void OnChannelError() override; |
| 38 bool OnMessageReceived(const IPC::Message& message) override; | 38 bool OnMessageReceived(const IPC::Message& message) override; |
| 39 | 39 |
| 40 // media::VideoDecodeAccelerator implementation. | 40 // media::VideoDecodeAccelerator implementation. |
| 41 bool Initialize(const Config& config, Client* client) override; | 41 bool Initialize(const Config& config, Client* client) override; |
| 42 void SetCdm(int cdm_id) override; | 42 void SetCdm(int cdm_id) override; |
| 43 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; | 43 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; |
| 44 void AssignPictureBuffers( | 44 void AssignPictureBuffers( |
| 45 const std::vector<media::PictureBuffer>& buffers) override; | 45 const std::vector<media::PictureBuffer>& buffers) override; |
| 46 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 46 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 47 void Flush() override; | 47 void Flush(bool return_buffers) override; |
| 48 void Reset() override; | 48 void Reset() override; |
| 49 void Destroy() override; | 49 void Destroy() override; |
| 50 | 50 |
| 51 // CommandBufferProxyImpl::DeletionObserver implemetnation. | 51 // CommandBufferProxyImpl::DeletionObserver implemetnation. |
| 52 void OnWillDeleteImpl() override; | 52 void OnWillDeleteImpl() override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // Only Destroy() should be deleting |this|. | 55 // Only Destroy() should be deleting |this|. |
| 56 ~GpuVideoDecodeAcceleratorHost() override; | 56 ~GpuVideoDecodeAcceleratorHost() override; |
| 57 | 57 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // WeakPtr factory for posting tasks back to itself. | 99 // WeakPtr factory for posting tasks back to itself. |
| 100 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 100 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 102 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace content | 105 } // namespace content |
| 106 | 106 |
| 107 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 107 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |