Skip to content

Commit

Permalink
Bug 1934763 - part2 : make media engine decoder return correct hardwa…
Browse files Browse the repository at this point in the history
…re accelerated status. r=media-playback-reviewers,chunmin

Differential Revision: https://phabricator.services.mozilla.com/D231194

UltraBlame original commit: a861e5955acebded52e664b0ca290e040fa933fb
  • Loading branch information
marco-c committed Dec 16, 2024
1 parent 5027837 commit dda9dd4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dom/media/platforms/wmf/MFMediaEngineStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,40 @@ return
true
;
}
bool
MFMediaEngineStreamWrapper
:
:
IsHardwareAccelerated
(
nsACString
&
aFailureReason
)
const
{
if
(
!
mStream
)
{
return
false
;
}
return
mStream
-
>
AsVideoStream
(
)
!
=
nullptr
;
}
MFMediaEngineStream
:
:
Expand Down
10 changes: 10 additions & 0 deletions dom/media/platforms/wmf/MFMediaEngineStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,16 @@ ShouldDecoderAlwaysBeRecycled
const
override
;
bool
IsHardwareAccelerated
(
nsACString
&
aFailureReason
)
const
override
;
private
:
~
Expand Down

0 comments on commit dda9dd4

Please sign in to comment.