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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user