| 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) override; |
| 50 void Destroy() override; | 51 void Destroy() override; |
| 51 | 52 |
| 52 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. | 53 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. |
| 53 void OnWillDeleteImpl() override; | 54 void OnWillDeleteImpl() override; |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 // Only Destroy() should be deleting |this|. | 57 // Only Destroy() should be deleting |this|. |
| 57 ~GpuVideoDecodeAcceleratorHost() override; | 58 ~GpuVideoDecodeAcceleratorHost() override; |
| 58 | 59 |
| 59 // 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 96 |
| 96 // WeakPtr factory for posting tasks back to itself. | 97 // WeakPtr factory for posting tasks back to itself. |
| 97 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 98 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 98 | 99 |
| 99 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 100 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace media | 103 } // namespace media |
| 103 | 104 |
| 104 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 105 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |