Bug 1581902 - p3: expose H.264 HW availability to AndroidBridge. r=esawin

Also rename existing utility functions to reflect that they are for VP8 only.

Differential Revision: https://phabricator.services.mozilla.com/D47369
This commit is contained in:
John Lin
2019-10-01 16:55:01 +00:00
parent d04a44e0fc
commit 045ce075d6
5 changed files with 25 additions and 18 deletions

View File

@@ -235,22 +235,28 @@ bool AndroidBridge::GetHandlersForMimeType(const nsAString& aMimeType,
return true;
}
bool AndroidBridge::GetHWEncoderCapability() {
ALOG_BRIDGE("AndroidBridge::GetHWEncoderCapability");
bool AndroidBridge::HasHWVP8Encoder() {
ALOG_BRIDGE("AndroidBridge::HasHWVP8Encoder");
bool value = GeckoAppShell::GetHWEncoderCapability();
bool value = GeckoAppShell::HasHWVP8Encoder();
return value;
}
bool AndroidBridge::GetHWDecoderCapability() {
ALOG_BRIDGE("AndroidBridge::GetHWDecoderCapability");
bool AndroidBridge::HasHWVP8Decoder() {
ALOG_BRIDGE("AndroidBridge::HasHWVP8Decoder");
bool value = GeckoAppShell::GetHWDecoderCapability();
bool value = GeckoAppShell::HasHWVP8Decoder();
return value;
}
bool AndroidBridge::HasHWH264() {
ALOG_BRIDGE("AndroidBridge::HasHWH264");
return HardwareCodecCapabilityUtils::HasHWH264();
}
bool AndroidBridge::GetHandlersForURL(const nsAString& aURL,
nsIMutableArray* aHandlersArray,
nsIHandlerApp** aDefaultApp,