Chromium Code Reviews| Index: media/base/video_frame_metadata.h |
| diff --git a/media/base/video_frame_metadata.h b/media/base/video_frame_metadata.h |
| index 543c71d9f45c84ccd20bfc454d97c132dee94f82..7199ef1d3cdd8b11ce08b63fab0dd9acb25b840b 100644 |
| --- a/media/base/video_frame_metadata.h |
| +++ b/media/base/video_frame_metadata.h |
| @@ -13,6 +13,7 @@ |
| #include "base/time/time.h" |
| #include "base/values.h" |
| #include "media/base/media_export.h" |
| +#include "media/base/video_rotation.h" |
| namespace media { |
| @@ -106,6 +107,9 @@ class MEDIA_EXPORT VideoFrameMetadata { |
| // should use read lock fences. |
| READ_LOCK_FENCES_ENABLED, |
| + // Indicates that the underlying texture of this frame is rotated. |
|
mcasas
2016/07/15 01:57:34
nit: not necessarily a Texture.
emircan
2016/07/15 18:43:13
Done.
|
| + ROTATION, |
| + |
| NUM_KEYS |
| }; |
| @@ -120,6 +124,7 @@ class MEDIA_EXPORT VideoFrameMetadata { |
| void SetBoolean(Key key, bool value); |
| void SetInteger(Key key, int value); |
| void SetDouble(Key key, double value); |
| + void SetRotation(Key key, VideoRotation value); |
| void SetString(Key key, const std::string& value); |
| void SetTimeDelta(Key key, const base::TimeDelta& value); |
| void SetTimeTicks(Key key, const base::TimeTicks& value); |
| @@ -129,6 +134,7 @@ class MEDIA_EXPORT VideoFrameMetadata { |
| bool GetBoolean(Key key, bool* value) const WARN_UNUSED_RESULT; |
| bool GetInteger(Key key, int* value) const WARN_UNUSED_RESULT; |
| bool GetDouble(Key key, double* value) const WARN_UNUSED_RESULT; |
| + bool GetRotation(Key key, VideoRotation* value) const WARN_UNUSED_RESULT; |
| bool GetString(Key key, std::string* value) const WARN_UNUSED_RESULT; |
| bool GetTimeDelta(Key key, base::TimeDelta* value) const WARN_UNUSED_RESULT; |
| bool GetTimeTicks(Key key, base::TimeTicks* value) const WARN_UNUSED_RESULT; |