Skip to content

Commit b84d73b

Browse files
committed
Bug 1934763 - part2 : make media engine decoder return correct hardware accelerated status. r=media-playback-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D231194 UltraBlame original commit: a861e5955acebded52e664b0ca290e040fa933fb
1 parent 04dab7e commit b84d73b

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

dom/media/platforms/wmf/MFMediaEngineStream.cpp

+42
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,48 @@ return
837837
true
838838
;
839839
}
840+
bool
841+
MFMediaEngineStreamWrapper
842+
:
843+
:
844+
IsHardwareAccelerated
845+
(
846+
nsACString
847+
&
848+
aFailureReason
849+
)
850+
const
851+
{
852+
if
853+
(
854+
!
855+
mStream
856+
)
857+
{
858+
return
859+
false
860+
;
861+
}
862+
/
863+
/
864+
Video
865+
is
866+
always
867+
hardware
868+
accelerated
869+
.
870+
return
871+
mStream
872+
-
873+
>
874+
AsVideoStream
875+
(
876+
)
877+
!
878+
=
879+
nullptr
880+
;
881+
}
840882
MFMediaEngineStream
841883
:
842884
:

dom/media/platforms/wmf/MFMediaEngineStream.h

+10
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,16 @@ ShouldDecoderAlwaysBeRecycled
14461446
const
14471447
override
14481448
;
1449+
bool
1450+
IsHardwareAccelerated
1451+
(
1452+
nsACString
1453+
&
1454+
aFailureReason
1455+
)
1456+
const
1457+
override
1458+
;
14491459
private
14501460
:
14511461
~

0 commit comments

Comments
 (0)