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

Side by Side Diff: cc/layers/video_layer_impl.h

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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer_proto_converter.cc ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_VIDEO_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_VIDEO_LAYER_IMPL_H_
6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_ 6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void DidBecomeActive() override; 43 void DidBecomeActive() override;
44 void ReleaseResources() override; 44 void ReleaseResources() override;
45 45
46 void SetNeedsRedraw(); 46 void SetNeedsRedraw();
47 media::VideoRotation video_rotation() const { return video_rotation_; } 47 media::VideoRotation video_rotation() const { return video_rotation_; }
48 48
49 private: 49 private:
50 VideoLayerImpl( 50 VideoLayerImpl(
51 LayerTreeImpl* tree_impl, 51 LayerTreeImpl* tree_impl,
52 int id, 52 int id,
53 const scoped_refptr<VideoFrameProviderClientImpl>& provider_client_impl, 53 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl,
54 media::VideoRotation video_rotation); 54 media::VideoRotation video_rotation);
55 55
56 const char* LayerTypeAsString() const override; 56 const char* LayerTypeAsString() const override;
57 57
58 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_; 58 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_;
59 59
60 scoped_refptr<media::VideoFrame> frame_; 60 scoped_refptr<media::VideoFrame> frame_;
61 61
62 media::VideoRotation video_rotation_; 62 media::VideoRotation video_rotation_;
63 63
(...skipping 20 matching lines...) Expand all
84 std::vector<unsigned> software_resources_; 84 std::vector<unsigned> software_resources_;
85 // Called once for each software resource. 85 // Called once for each software resource.
86 ReleaseCallbackImpl software_release_callback_; 86 ReleaseCallbackImpl software_release_callback_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); 88 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl);
89 }; 89 };
90 90
91 } // namespace cc 91 } // namespace cc
92 92
93 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ 93 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_proto_converter.cc ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698