| Index: third_party/WebKit/Source/modules/media_capabilities/MediaDecodingAbility.cpp
|
| diff --git a/third_party/WebKit/Source/modules/media_capabilities/MediaDecodingAbility.cpp b/third_party/WebKit/Source/modules/media_capabilities/MediaDecodingAbility.cpp
|
| index a91b81d967cffb7766f9bd9d6cc95d9f0269ae4e..43dce182c3a59696f062fefa5fc22e10bc0482e1 100644
|
| --- a/third_party/WebKit/Source/modules/media_capabilities/MediaDecodingAbility.cpp
|
| +++ b/third_party/WebKit/Source/modules/media_capabilities/MediaDecodingAbility.cpp
|
| @@ -6,20 +6,30 @@
|
|
|
| namespace blink {
|
|
|
| -MediaDecodingAbility::MediaDecodingAbility() = default;
|
| +// static
|
| +MediaDecodingAbility* MediaDecodingAbility::take(
|
| + ScriptPromiseResolver*,
|
| + std::unique_ptr<WebMediaDecodingAbility> webMediaDecodingAbility) {
|
| + DCHECK(webMediaDecodingAbility);
|
| + return new MediaDecodingAbility(std::move(webMediaDecodingAbility));
|
| +}
|
|
|
| bool MediaDecodingAbility::supported() const {
|
| - return true;
|
| + return m_webMediaDecodingAbility->supported;
|
| }
|
|
|
| bool MediaDecodingAbility::smooth() const {
|
| - return true;
|
| + return m_webMediaDecodingAbility->smooth;
|
| }
|
|
|
| bool MediaDecodingAbility::powerEfficient() const {
|
| - return true;
|
| + return m_webMediaDecodingAbility->powerEfficient;
|
| }
|
|
|
| DEFINE_TRACE(MediaDecodingAbility) {}
|
|
|
| +MediaDecodingAbility::MediaDecodingAbility(
|
| + std::unique_ptr<WebMediaDecodingAbility> webMediaDecodingAbility)
|
| + : m_webMediaDecodingAbility(std::move(webMediaDecodingAbility)) {}
|
| +
|
| } // namespace blink
|
|
|