diff --git a/dom/media/platforms/wmf/MFMediaEngineStream.cpp b/dom/media/platforms/wmf/MFMediaEngineStream.cpp index ff3bb97ba771..0c6a73ade00a 100644 --- a/dom/media/platforms/wmf/MFMediaEngineStream.cpp +++ b/dom/media/platforms/wmf/MFMediaEngineStream.cpp @@ -715,6 +715,40 @@ return true ; } +bool +MFMediaEngineStreamWrapper +: +: +IsHardwareAccelerated +( +nsACString +& +aFailureReason +) +const +{ +if +( +! +mStream +) +{ +return +false +; +} +return +mStream +- +> +AsVideoStream +( +) +! += +nullptr +; +} MFMediaEngineStream : : diff --git a/dom/media/platforms/wmf/MFMediaEngineStream.h b/dom/media/platforms/wmf/MFMediaEngineStream.h index 5e89e20465df..d62151c2dd10 100644 --- a/dom/media/platforms/wmf/MFMediaEngineStream.h +++ b/dom/media/platforms/wmf/MFMediaEngineStream.h @@ -858,6 +858,16 @@ ShouldDecoderAlwaysBeRecycled const override ; +bool +IsHardwareAccelerated +( +nsACString +& +aFailureReason +) +const +override +; private : ~