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

Unified Diff: cc/layers/video_layer_impl.cc

Issue 1803863003: cc: Remove some unnecessary const scoped_refptr&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « cc/layers/video_layer_impl.h ('k') | cc/output/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_layer_impl.cc
diff --git a/cc/layers/video_layer_impl.cc b/cc/layers/video_layer_impl.cc
index cc979b59758f6362e66fd15f3912fe2f6f32a7b3..f22860c746c8b050a6e23fb7f4f343e80af9617c 100644
--- a/cc/layers/video_layer_impl.cc
+++ b/cc/layers/video_layer_impl.cc
@@ -39,20 +39,19 @@ scoped_ptr<VideoLayerImpl> VideoLayerImpl::Create(
VideoFrameProviderClientImpl::Create(
provider, tree_impl->GetVideoFrameControllerClient());
- return make_scoped_ptr(
- new VideoLayerImpl(tree_impl, id, provider_client_impl, video_rotation));
+ return make_scoped_ptr(new VideoLayerImpl(
+ tree_impl, id, std::move(provider_client_impl), video_rotation));
}
VideoLayerImpl::VideoLayerImpl(
LayerTreeImpl* tree_impl,
int id,
- const scoped_refptr<VideoFrameProviderClientImpl>& provider_client_impl,
+ scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl,
media::VideoRotation video_rotation)
: LayerImpl(tree_impl, id),
- provider_client_impl_(provider_client_impl),
+ provider_client_impl_(std::move(provider_client_impl)),
frame_(nullptr),
- video_rotation_(video_rotation) {
-}
+ video_rotation_(video_rotation) {}
VideoLayerImpl::~VideoLayerImpl() {
if (!provider_client_impl_->Stopped()) {
« no previous file with comments | « cc/layers/video_layer_impl.h ('k') | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698