Bug 1863846 change VideoInfo::Rotation to non-nested enum class VideoRotation so that it can be forward declared r=aosmond,media-playback-reviewers,padenot

Differential Revision: https://phabricator.services.mozilla.com/D193163
This commit is contained in:
Karl Tomlinson
2023-11-29 01:44:45 +00:00
parent 21d5c12a91
commit 36e0e49ccf
11 changed files with 74 additions and 72 deletions

View File

@@ -2210,15 +2210,15 @@ void WebRenderCommandBuilder::PopOverrideForASR(
mClipManager.PopOverrideForASR(aASR);
}
static wr::WrRotation ToWrRotation(VideoInfo::Rotation aRotation) {
static wr::WrRotation ToWrRotation(VideoRotation aRotation) {
switch (aRotation) {
case VideoInfo::Rotation::kDegree_0:
case VideoRotation::kDegree_0:
return wr::WrRotation::Degree0;
case VideoInfo::Rotation::kDegree_90:
case VideoRotation::kDegree_90:
return wr::WrRotation::Degree90;
case VideoInfo::Rotation::kDegree_180:
case VideoRotation::kDegree_180:
return wr::WrRotation::Degree180;
case VideoInfo::Rotation::kDegree_270:
case VideoRotation::kDegree_270:
return wr::WrRotation::Degree270;
}
return wr::WrRotation::Degree0;