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

Unified Diff: cc/layers/video_layer.h

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 | « cc/layers/ui_resource_layer_unittest.cc ('k') | cc/layers/video_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_layer.h
diff --git a/cc/layers/video_layer.h b/cc/layers/video_layer.h
index bbcff36d52d67d84c65eaa93a7dc6192baaa8cf2..298cd2c0708221bca8d196d510910804aafa2904 100644
--- a/cc/layers/video_layer.h
+++ b/cc/layers/video_layer.h
@@ -20,7 +20,8 @@ class VideoLayerImpl;
// A Layer that contains a Video element.
class CC_EXPORT VideoLayer : public Layer {
public:
- static scoped_refptr<VideoLayer> Create(VideoFrameProvider* provider,
+ static scoped_refptr<VideoLayer> Create(const LayerSettings& settings,
+ VideoFrameProvider* provider,
media::VideoRotation video_rotation);
scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
@@ -29,7 +30,9 @@ class CC_EXPORT VideoLayer : public Layer {
const OcclusionTracker<Layer>* occlusion) override;
private:
- VideoLayer(VideoFrameProvider* provider, media::VideoRotation video_rotation);
+ VideoLayer(const LayerSettings& settings,
+ VideoFrameProvider* provider,
+ media::VideoRotation video_rotation);
~VideoLayer() override;
// This pointer is only for passing to VideoLayerImpl's constructor. It should
« no previous file with comments | « cc/layers/ui_resource_layer_unittest.cc ('k') | cc/layers/video_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698