Index: cc/layers/video_layer.h |
diff --git a/cc/layers/video_layer.h b/cc/layers/video_layer.h |
index dd2c4e149ffadf8dc000ea585b0590f560635d92..8f997d0498ae2113a7c2420139437980f6b99796 100644 |
--- a/cc/layers/video_layer.h |
+++ b/cc/layers/video_layer.h |
@@ -8,6 +8,7 @@ |
#include "base/callback.h" |
#include "cc/base/cc_export.h" |
#include "cc/layers/layer.h" |
+#include "media/base/video_rotation.h" |
namespace media { class VideoFrame; } |
@@ -27,6 +28,12 @@ class CC_EXPORT VideoLayer : public Layer { |
virtual bool Update(ResourceUpdateQueue* queue, |
const OcclusionTracker<Layer>* occlusion) OVERRIDE; |
+ inline void set_video_rotation(media::VideoRotation video_rotation) { |
+ video_rotation_ = video_rotation; |
+ } |
+ |
+ virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
+ |
private: |
explicit VideoLayer(VideoFrameProvider* provider); |
virtual ~VideoLayer(); |
@@ -35,6 +42,8 @@ class CC_EXPORT VideoLayer : public Layer { |
// never be dereferenced by this class. |
VideoFrameProvider* provider_; |
+ media::VideoRotation video_rotation_; |
+ |
DISALLOW_COPY_AND_ASSIGN(VideoLayer); |
}; |