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

Unified Diff: cc/layers/video_layer_impl.h

Issue 388643002: Rotation into Video Layer + Content Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed uneeded parameter. Created 6 years, 5 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
Index: cc/layers/video_layer_impl.h
diff --git a/cc/layers/video_layer_impl.h b/cc/layers/video_layer_impl.h
index dd09589b5d72e6fa8f5d1e098e2a916f85aa8af8..75c75c176e571db3e758583261bdc941dcf55c7b 100644
--- a/cc/layers/video_layer_impl.h
+++ b/cc/layers/video_layer_impl.h
@@ -11,6 +11,7 @@
#include "cc/layers/layer_impl.h"
#include "cc/resources/release_callback.h"
#include "cc/resources/video_resource_updater.h"
+#include "media/base/video_rotation.h"
namespace media {
class VideoFrame;
@@ -42,6 +43,13 @@ class CC_EXPORT VideoLayerImpl : public LayerImpl {
void SetNeedsRedraw();
+ inline void set_video_rotation(media::VideoRotation video_rotation) {
+ video_rotation_ = video_rotation;
+ NoteLayerPropertyChanged();
+ }
+
+ inline media::VideoRotation get_video_rotation() { return video_rotation_; }
enne (OOO) 2014/07/22 21:10:40 style nit: drop the get_
+
void SetProviderClientImpl(
scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl);
@@ -54,6 +62,8 @@ class CC_EXPORT VideoLayerImpl : public LayerImpl {
scoped_refptr<media::VideoFrame> frame_;
+ media::VideoRotation video_rotation_;
+
scoped_ptr<VideoResourceUpdater> updater_;
VideoFrameExternalResources::ResourceType frame_resource_type_;
std::vector<ResourceProvider::ResourceId> frame_resources_;

Powered by Google App Engine
This is Rietveld 408576698