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

Unified Diff: media/gpu/media_foundation_video_encode_accelerator_win.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | media/midi/midi_manager_winrt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/media_foundation_video_encode_accelerator_win.cc
diff --git a/media/gpu/media_foundation_video_encode_accelerator_win.cc b/media/gpu/media_foundation_video_encode_accelerator_win.cc
index c70e3010d724c63cebb1d4b5196d7a19437dda89..fea0fb9d4ce283a23bc315074495ad942715fc0a 100644
--- a/media/gpu/media_foundation_video_encode_accelerator_win.cc
+++ b/media/gpu/media_foundation_video_encode_accelerator_win.cc
@@ -391,7 +391,7 @@ bool MediaFoundationVideoEncodeAccelerator::InitializeInputOutputSamples() {
}
// Initialize output parameters.
- hr = MFCreateMediaType(imf_output_media_type_.Receive());
+ hr = MFCreateMediaType(imf_output_media_type_.GetAddressOf());
RETURN_ON_HR_FAILURE(hr, "Couldn't create media type", false);
hr = imf_output_media_type_->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Video);
RETURN_ON_HR_FAILURE(hr, "Couldn't set media type", false);
@@ -417,7 +417,7 @@ bool MediaFoundationVideoEncodeAccelerator::InitializeInputOutputSamples() {
RETURN_ON_HR_FAILURE(hr, "Couldn't set output media type", false);
// Initialize input parameters.
- hr = MFCreateMediaType(imf_input_media_type_.Receive());
+ hr = MFCreateMediaType(imf_input_media_type_.GetAddressOf());
RETURN_ON_HR_FAILURE(hr, "Couldn't create media type", false);
hr = imf_input_media_type_->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Video);
RETURN_ON_HR_FAILURE(hr, "Couldn't set media type", false);
@@ -444,7 +444,7 @@ bool MediaFoundationVideoEncodeAccelerator::SetEncoderModes() {
RETURN_ON_FAILURE((encoder_.Get() != nullptr),
"No HW encoder instance created", false);
- HRESULT hr = encoder_.CopyTo(codec_api_.Receive());
+ HRESULT hr = encoder_.CopyTo(codec_api_.GetAddressOf());
RETURN_ON_HR_FAILURE(hr, "Couldn't get ICodecAPI", false);
VARIANT var;
var.vt = VT_UI4;
@@ -500,7 +500,7 @@ void MediaFoundationVideoEncodeAccelerator::EncodeTask(
DCHECK(encoder_thread_task_runner_->BelongsToCurrentThread());
base::win::ScopedComPtr<IMFMediaBuffer> input_buffer;
- input_sample_->GetBufferByIndex(0, input_buffer.Receive());
+ input_sample_->GetBufferByIndex(0, input_buffer.GetAddressOf());
{
MediaBufferScopedPointer scoped_buffer(input_buffer.Get());
@@ -579,7 +579,7 @@ void MediaFoundationVideoEncodeAccelerator::ProcessOutput() {
DVLOG(3) << "Got encoded data " << hr;
base::win::ScopedComPtr<IMFMediaBuffer> output_buffer;
- hr = output_sample_->GetBufferByIndex(0, output_buffer.Receive());
+ hr = output_sample_->GetBufferByIndex(0, output_buffer.GetAddressOf());
RETURN_ON_HR_FAILURE(hr, "Couldn't get buffer by index", );
DWORD size = 0;
hr = output_buffer->GetCurrentLength(&size);
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | media/midi/midi_manager_winrt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698