| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // |this| is guaranteed not to outlive |channel| and |impl|. (See comments | 28 // |this| is guaranteed not to outlive |channel| and |impl|. (See comments |
| 29 // for |channel_| and |impl_|.) | 29 // for |channel_| and |impl_|.) |
| 30 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, | 30 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, |
| 31 CommandBufferProxyImpl* impl); | 31 CommandBufferProxyImpl* impl); |
| 32 | 32 |
| 33 // IPC::Listener implementation. | 33 // IPC::Listener implementation. |
| 34 void OnChannelError() override; | 34 void OnChannelError() override; |
| 35 bool OnMessageReceived(const IPC::Message& message) override; | 35 bool OnMessageReceived(const IPC::Message& message) override; |
| 36 | 36 |
| 37 // media::VideoDecodeAccelerator implementation. | 37 // media::VideoDecodeAccelerator implementation. |
| 38 bool Initialize(media::VideoCodecProfile profile, Client* client) override; | 38 bool Initialize( |
| 39 media::VideoCodecProfile profile, |
| 40 uint32 min_picture_count, |
| 41 Client* client) override; |
| 39 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; | 42 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; |
| 40 void AssignPictureBuffers( | 43 void AssignPictureBuffers( |
| 41 const std::vector<media::PictureBuffer>& buffers) override; | 44 const std::vector<media::PictureBuffer>& buffers) override; |
| 42 void ReusePictureBuffer(int32 picture_buffer_id) override; | 45 void ReusePictureBuffer(int32 picture_buffer_id) override; |
| 43 void Flush() override; | 46 void Flush() override; |
| 44 void Reset() override; | 47 void Reset() override; |
| 45 void Destroy() override; | 48 void Destroy() override; |
| 46 | 49 |
| 47 // CommandBufferProxyImpl::DeletionObserver implemetnation. | 50 // CommandBufferProxyImpl::DeletionObserver implemetnation. |
| 48 void OnWillDeleteImpl() override; | 51 void OnWillDeleteImpl() override; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 95 |
| 93 // WeakPtr factory for posting tasks back to itself. | 96 // WeakPtr factory for posting tasks back to itself. |
| 94 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; | 97 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |
| 95 | 98 |
| 96 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 99 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 } // namespace content | 102 } // namespace content |
| 100 | 103 |
| 101 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 104 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |