| 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 29 matching lines...) Expand all Loading... |
| 40 void OnChannelError() override; | 40 void OnChannelError() override; |
| 41 bool OnMessageReceived(const IPC::Message& message) override; | 41 bool OnMessageReceived(const IPC::Message& message) override; |
| 42 | 42 |
| 43 // VideoDecodeAccelerator implementation. | 43 // VideoDecodeAccelerator implementation. |
| 44 bool Initialize(const Config& config, Client* client) override; | 44 bool Initialize(const Config& config, Client* client) override; |
| 45 void Decode(const BitstreamBuffer& bitstream_buffer) override; | 45 void Decode(const BitstreamBuffer& bitstream_buffer) override; |
| 46 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; | 46 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; |
| 47 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 47 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 48 void Flush() override; | 48 void Flush() override; |
| 49 void Reset() override; | 49 void Reset() override; |
| 50 void SetSurface(int32_t surface_id, | 50 void SetOverlayInfo(const OverlayInfo&) override; |
| 51 const base::Optional<base::UnguessableToken>& token) override; | |
| 52 void Destroy() override; | 51 void Destroy() override; |
| 53 | 52 |
| 54 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. | 53 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. |
| 55 void OnWillDeleteImpl() override; | 54 void OnWillDeleteImpl() override; |
| 56 | 55 |
| 57 private: | 56 private: |
| 58 // Only Destroy() should be deleting |this|. | 57 // Only Destroy() should be deleting |this|. |
| 59 ~GpuVideoDecodeAcceleratorHost() override; | 58 ~GpuVideoDecodeAcceleratorHost() override; |
| 60 | 59 |
| 61 // Notify |client_| of an error. Posts a task to avoid re-entrancy. | 60 // Notify |client_| of an error. Posts a task to avoid re-entrancy. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 SEQUENCE_CHECKER(sequence_checker_); | 108 SEQUENCE_CHECKER(sequence_checker_); |
| 110 | 109 |
| 111 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 110 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 112 | 111 |
| 113 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 112 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 } // namespace media | 115 } // namespace media |
| 117 | 116 |
| 118 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 117 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |