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

Unified Diff: content/renderer/media/rtc_video_decoder_unittest.cc

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl feedback. Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder_unittest.cc
diff --git a/content/renderer/media/rtc_video_decoder_unittest.cc b/content/renderer/media/rtc_video_decoder_unittest.cc
index 49cb98288b42993a44f6c61e4fdabf9c12254620..1ce30d844e4ddc0bde3649a172beff5652694525 100644
--- a/content/renderer/media/rtc_video_decoder_unittest.cc
+++ b/content/renderer/media/rtc_video_decoder_unittest.cc
@@ -43,15 +43,15 @@ class RTCVideoDecoderTest : public ::testing::Test,
supported_profile.min_resolution.SetSize(16, 16);
supported_profile.max_resolution.SetSize(1920, 1088);
supported_profile.profile = media::H264PROFILE_MAIN;
- supported_profiles_.push_back(supported_profile);
+ capabilities_.supported_profiles.push_back(supported_profile);
supported_profile.profile = media::VP8PROFILE_ANY;
- supported_profiles_.push_back(supported_profile);
+ capabilities_.supported_profiles.push_back(supported_profile);
EXPECT_CALL(*mock_gpu_factories_.get(), GetTaskRunner())
.WillRepeatedly(Return(vda_task_runner_));
EXPECT_CALL(*mock_gpu_factories_.get(),
- GetVideoDecodeAcceleratorSupportedProfiles())
- .WillRepeatedly(Return(supported_profiles_));
+ GetVideoDecodeAcceleratorCapabilities())
+ .WillRepeatedly(Return(capabilities_));
EXPECT_CALL(*mock_gpu_factories_.get(), DoCreateVideoDecodeAccelerator())
.WillRepeatedly(Return(mock_vda_));
EXPECT_CALL(*mock_vda_, Initialize(_, _))
@@ -112,7 +112,7 @@ class RTCVideoDecoderTest : public ::testing::Test,
scoped_ptr<RTCVideoDecoder> rtc_decoder_;
webrtc::VideoCodec codec_;
base::Thread vda_thread_;
- media::VideoDecodeAccelerator::SupportedProfiles supported_profiles_;
+ media::VideoDecodeAccelerator::Capabilities capabilities_;
private:
scoped_refptr<base::SingleThreadTaskRunner> vda_task_runner_;
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698