| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ENCODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 static std::vector<media::VideoEncodeAccelerator::SupportedProfile> | 48 static std::vector<media::VideoEncodeAccelerator::SupportedProfile> |
| 49 ConvertGpuToMediaProfiles(const std::vector< | 49 ConvertGpuToMediaProfiles(const std::vector< |
| 50 gpu::VideoEncodeAcceleratorSupportedProfile>& gpu_profiles); | 50 gpu::VideoEncodeAcceleratorSupportedProfile>& gpu_profiles); |
| 51 | 51 |
| 52 // IPC::Listener implementation. | 52 // IPC::Listener implementation. |
| 53 bool OnMessageReceived(const IPC::Message& message) override; | 53 bool OnMessageReceived(const IPC::Message& message) override; |
| 54 void OnChannelError() override; | 54 void OnChannelError() override; |
| 55 | 55 |
| 56 // media::VideoEncodeAccelerator implementation. | 56 // media::VideoEncodeAccelerator implementation. |
| 57 std::vector<SupportedProfile> GetSupportedProfiles() override; | 57 std::vector<media::VideoEncodeAccelerator::SupportedProfile> |
| 58 GetSupportedProfiles() override; |
| 58 bool Initialize(media::VideoFrame::Format input_format, | 59 bool Initialize(media::VideoFrame::Format input_format, |
| 59 const gfx::Size& input_visible_size, | 60 const gfx::Size& input_visible_size, |
| 60 media::VideoCodecProfile output_profile, | 61 media::VideoCodecProfile output_profile, |
| 61 uint32 initial_bitrate, | 62 uint32 initial_bitrate, |
| 62 Client* client) override; | 63 Client* client) override; |
| 63 void Encode(const scoped_refptr<media::VideoFrame>& frame, | 64 void Encode(const scoped_refptr<media::VideoFrame>& frame, |
| 64 bool force_keyframe) override; | 65 bool force_keyframe) override; |
| 65 void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) override; | 66 void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) override; |
| 66 void RequestEncodingParametersChange(uint32 bitrate, | 67 void RequestEncodingParametersChange(uint32 bitrate, |
| 67 uint32 framerate_num) override; | 68 uint32 framerate_num) override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 117 |
| 117 // WeakPtr factory for posting tasks back to itself. | 118 // WeakPtr factory for posting tasks back to itself. |
| 118 base::WeakPtrFactory<GpuVideoEncodeAcceleratorHost> weak_this_factory_; | 119 base::WeakPtrFactory<GpuVideoEncodeAcceleratorHost> weak_this_factory_; |
| 119 | 120 |
| 120 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAcceleratorHost); | 121 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAcceleratorHost); |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace content | 124 } // namespace content |
| 124 | 125 |
| 125 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ | 126 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_ENCODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |