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

Side by Side Diff: media/video/mock_video_encode_accelerator.h

Issue 2182183007: Handle scaling frames in RTCVideoEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: posciak@ comments. Created 4 years, 4 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_VIDEO_MOCK_VIDEO_ENCODE_ACCELERATOR_H_
6 #define MEDIA_VIDEO_MOCK_VIDEO_ENCODE_ACCELERATOR_H_
7
8 #include "media/video/video_encode_accelerator.h"
9
10 #include "base/macros.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 namespace media {
14
15 class MockVideoEncodeAccelerator : public VideoEncodeAccelerator {
16 public:
17 MockVideoEncodeAccelerator();
18 virtual ~MockVideoEncodeAccelerator();
19
20 MOCK_METHOD0(GetSupportedProfiles,
21 VideoEncodeAccelerator::SupportedProfiles());
22 MOCK_METHOD5(Initialize,
23 bool(VideoPixelFormat input_format,
24 const gfx::Size& input_visible_size,
25 VideoCodecProfile output_profile,
26 uint32_t initial_bitrate,
27 VideoEncodeAccelerator::Client* client));
28 MOCK_METHOD2(Encode,
29 void(const scoped_refptr<VideoFrame>& frame,
30 bool force_keyframe));
31 MOCK_METHOD1(UseOutputBitstreamBuffer, void(const BitstreamBuffer& buffer));
32 MOCK_METHOD2(RequestEncodingParametersChange,
33 void(uint32_t bitrate, uint32_t framerate));
34 MOCK_METHOD0(Destroy, void());
35
36 private:
37 void DeleteThis();
38 DISALLOW_COPY_AND_ASSIGN(MockVideoEncodeAccelerator);
39 };
40
41 } // namespace media
42
43 #endif // MEDIA_VIDEO_MOCK_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/renderers/mock_gpu_video_accelerator_factories.cc ('k') | media/video/mock_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698