diff options
author | sunnyps <sunnyps@chromium.org> | 2015-03-27 13:27:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-27 20:27:44 +0000 |
commit | b9fe57c1d28a89abed11bf7e11dc7c03390e50af (patch) | |
tree | e74e45bcffe50f06db797557f39db0f70d6975bd /cc | |
parent | 52850c1e665f3f18e3e6d6b9c46c7763e858c041 (diff) | |
download | chromium_src-b9fe57c1d28a89abed11bf7e11dc7c03390e50af.zip chromium_src-b9fe57c1d28a89abed11bf7e11dc7c03390e50af.tar.gz chromium_src-b9fe57c1d28a89abed11bf7e11dc7c03390e50af.tar.bz2 |
cc: Use const ref to avoid extra ref count of VideoProviderClientImpl.
Use a const ref to avoid the expensive operation of incrementing the ref
count of RefCountedThreadSafe VideoProviderClientImpl.
BUG=336733
Review URL: https://codereview.chromium.org/1039783002
Cr-Commit-Position: refs/heads/master@{#322633}
Diffstat (limited to 'cc')
-rw-r--r-- | cc/layers/video_layer_impl.cc | 2 | ||||
-rw-r--r-- | cc/layers/video_layer_impl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cc/layers/video_layer_impl.cc b/cc/layers/video_layer_impl.cc index c43f027..2bbf1a2 100644 --- a/cc/layers/video_layer_impl.cc +++ b/cc/layers/video_layer_impl.cc @@ -43,7 +43,7 @@ scoped_ptr<VideoLayerImpl> VideoLayerImpl::Create( VideoLayerImpl::VideoLayerImpl( LayerTreeImpl* tree_impl, int id, - scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl, + const scoped_refptr<VideoFrameProviderClientImpl>& provider_client_impl, media::VideoRotation video_rotation) : LayerImpl(tree_impl, id), provider_client_impl_(provider_client_impl), diff --git a/cc/layers/video_layer_impl.h b/cc/layers/video_layer_impl.h index 5e99923..0a61798 100644 --- a/cc/layers/video_layer_impl.h +++ b/cc/layers/video_layer_impl.h @@ -48,7 +48,7 @@ class CC_EXPORT VideoLayerImpl : public LayerImpl { VideoLayerImpl( LayerTreeImpl* tree_impl, int id, - scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl, + const scoped_refptr<VideoFrameProviderClientImpl>& provider_client_impl, media::VideoRotation video_rotation); const char* LayerTypeAsString() const override; |