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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user