Collect NV12, YUY2, and BGRA overlay support information in GPUInfo
1121622
This commit is contained in:
parent
e3fef30789
commit
63176acde2
2 changed files with 15 additions and 0 deletions
|
@ -95,6 +95,18 @@ void GPUInfoEnumerator::EndAuxAttributes() {
|
|||
value_stack.pop();
|
||||
}
|
||||
|
||||
void GPUInfoEnumerator::BeginOverlayCapability() {
|
||||
value_stack.push(std::move(current));
|
||||
current = std::make_unique<base::DictionaryValue>();
|
||||
}
|
||||
|
||||
void GPUInfoEnumerator::EndOverlayCapability() {
|
||||
auto& top_value = value_stack.top();
|
||||
top_value->SetDictionary(kOverlayCapabilityKey, std::move(current));
|
||||
current = std::move(top_value);
|
||||
value_stack.pop();
|
||||
}
|
||||
|
||||
std::unique_ptr<base::DictionaryValue> GPUInfoEnumerator::GetDictionary() {
|
||||
return std::move(current);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue