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

Unified Diff: media/gpu/d3d11_video_decode_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/d3d11_h264_accelerator.cc ('k') | media/gpu/dxva_picture_buffer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/d3d11_video_decode_accelerator_win.cc
diff --git a/media/gpu/d3d11_video_decode_accelerator_win.cc b/media/gpu/d3d11_video_decode_accelerator_win.cc
index 31acce7ef48cf292fc5aeb438163e6b7f6b7d0ad..386bdac9b08df593f7b825b36c93ee22815268a7 100644
--- a/media/gpu/d3d11_video_decode_accelerator_win.cc
+++ b/media/gpu/d3d11_video_decode_accelerator_win.cc
@@ -48,12 +48,12 @@ bool D3D11VideoDecodeAccelerator::Initialize(const Config& config,
make_context_current_cb_.Run();
device_ = gl::QueryD3D11DeviceObjectFromANGLE();
- device_->GetImmediateContext(device_context_.Receive());
+ device_->GetImmediateContext(device_context_.GetAddressOf());
- HRESULT hr = device_context_.CopyTo(video_context_.Receive());
+ HRESULT hr = device_context_.CopyTo(video_context_.GetAddressOf());
CHECK(SUCCEEDED(hr));
- hr = device_.CopyTo(video_device_.Receive());
+ hr = device_.CopyTo(video_device_.GetAddressOf());
CHECK(SUCCEEDED(hr));
bool is_h264 =
@@ -104,7 +104,7 @@ bool D3D11VideoDecodeAccelerator::Initialize(const Config& config,
base::win::ScopedComPtr<ID3D11VideoDecoder> video_decoder;
hr = video_device_->CreateVideoDecoder(&desc, &dec_config,
- video_decoder.Receive());
+ video_decoder.GetAddressOf());
CHECK(video_decoder.Get());
h264_accelerator_.reset(new D3D11H264Accelerator(
@@ -178,8 +178,8 @@ void D3D11VideoDecodeAccelerator::AssignPictureBuffers(
texture_desc.MiscFlags = D3D11_RESOURCE_MISC_SHARED;
base::win::ScopedComPtr<ID3D11Texture2D> out_texture;
- HRESULT hr =
- device_->CreateTexture2D(&texture_desc, nullptr, out_texture.Receive());
+ HRESULT hr = device_->CreateTexture2D(&texture_desc, nullptr,
+ out_texture.GetAddressOf());
CHECK(SUCCEEDED(hr));
make_context_current_cb_.Run();
« no previous file with comments | « media/gpu/d3d11_h264_accelerator.cc ('k') | media/gpu/dxva_picture_buffer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698