Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: content/renderer/pepper/video_encoder_shim.h

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_RENDERER_PEPPER_VIDEO_ENCODER_SHIM_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_VIDEO_ENCODER_SHIM_H_
6 #define CONTENT_RENDERER_PEPPER_VIDEO_ENCODER_SHIM_H_ 6 #define CONTENT_RENDERER_PEPPER_VIDEO_ENCODER_SHIM_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 // This class is a shim to wrap a media::cast::SoftwareVideoEncoder so that it 26 // This class is a shim to wrap a media::cast::SoftwareVideoEncoder so that it
27 // can be used by PepperVideoEncoderHost in place of a 27 // can be used by PepperVideoEncoderHost in place of a
28 // media::VideoEncodeAccelerator. This class should be constructed, used, and 28 // media::VideoEncodeAccelerator. This class should be constructed, used, and
29 // destructed on the main (render) thread. 29 // destructed on the main (render) thread.
30 class VideoEncoderShim : public media::VideoEncodeAccelerator { 30 class VideoEncoderShim : public media::VideoEncodeAccelerator {
31 public: 31 public:
32 explicit VideoEncoderShim(PepperVideoEncoderHost* host); 32 explicit VideoEncoderShim(PepperVideoEncoderHost* host);
33 ~VideoEncoderShim() override; 33 ~VideoEncoderShim() override;
34 34
35 // media::VideoEncodeAccelerator implementation. 35 // media::VideoEncodeAccelerator implementation.
36 std::vector<media::VideoEncodeAccelerator::SupportedProfile> 36 media::VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles()
37 GetSupportedProfiles() override; 37 override;
38 bool Initialize(media::VideoFrame::Format input_format, 38 bool Initialize(media::VideoFrame::Format input_format,
39 const gfx::Size& input_visible_size, 39 const gfx::Size& input_visible_size,
40 media::VideoCodecProfile output_profile, 40 media::VideoCodecProfile output_profile,
41 uint32 initial_bitrate, 41 uint32 initial_bitrate,
42 media::VideoEncodeAccelerator::Client* client) override; 42 media::VideoEncodeAccelerator::Client* client) override;
43 void Encode(const scoped_refptr<media::VideoFrame>& frame, 43 void Encode(const scoped_refptr<media::VideoFrame>& frame,
44 bool force_keyframe) override; 44 bool force_keyframe) override;
45 void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) override; 45 void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) override;
46 void RequestEncodingParametersChange(uint32 bitrate, 46 void RequestEncodingParametersChange(uint32 bitrate,
47 uint32 framerate) override; 47 uint32 framerate) override;
(...skipping 19 matching lines...) Expand all
67 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 67 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
68 68
69 base::WeakPtrFactory<VideoEncoderShim> weak_ptr_factory_; 69 base::WeakPtrFactory<VideoEncoderShim> weak_ptr_factory_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(VideoEncoderShim); 71 DISALLOW_COPY_AND_ASSIGN(VideoEncoderShim);
72 }; 72 };
73 73
74 } // namespace content 74 } // namespace content
75 75
76 #endif // CONTENT_RENDERER_PEPPER_VIDEO_ENCODER_SHIM_H_ 76 #endif // CONTENT_RENDERER_PEPPER_VIDEO_ENCODER_SHIM_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_encoder_host.cc ('k') | content/renderer/pepper/video_encoder_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698