parent
527e8f3a31
commit
03f9d40635
2 changed files with 17 additions and 0 deletions
|
@ -83,6 +83,19 @@ void GPUInfoEnumerator::EndVideoEncodeAcceleratorSupportedProfile() {
|
||||||
value_stack.pop();
|
value_stack.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GPUInfoEnumerator::BeginImageDecodeAcceleratorSupportedProfile() {
|
||||||
|
value_stack.push(std::move(current));
|
||||||
|
current = std::make_unique<base::DictionaryValue>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GPUInfoEnumerator::EndImageDecodeAcceleratorSupportedProfile() {
|
||||||
|
auto& top_value = value_stack.top();
|
||||||
|
top_value->SetDictionary(kImageDecodeAcceleratorSupportedProfileKey,
|
||||||
|
std::move(current));
|
||||||
|
current = std::move(top_value);
|
||||||
|
value_stack.pop();
|
||||||
|
}
|
||||||
|
|
||||||
void GPUInfoEnumerator::BeginAuxAttributes() {
|
void GPUInfoEnumerator::BeginAuxAttributes() {
|
||||||
value_stack.push(std::move(current));
|
value_stack.push(std::move(current));
|
||||||
current = std::make_unique<base::DictionaryValue>();
|
current = std::make_unique<base::DictionaryValue>();
|
||||||
|
|
|
@ -22,6 +22,8 @@ class GPUInfoEnumerator final : public gpu::GPUInfo::Enumerator {
|
||||||
"videoDecodeAcceleratorSupportedProfile";
|
"videoDecodeAcceleratorSupportedProfile";
|
||||||
const char* kVideoEncodeAcceleratorSupportedProfileKey =
|
const char* kVideoEncodeAcceleratorSupportedProfileKey =
|
||||||
"videoEncodeAcceleratorSupportedProfile";
|
"videoEncodeAcceleratorSupportedProfile";
|
||||||
|
const char* kImageDecodeAcceleratorSupportedProfileKey =
|
||||||
|
"imageDecodeAcceleratorSupportedProfile";
|
||||||
const char* kAuxAttributesKey = "auxAttributes";
|
const char* kAuxAttributesKey = "auxAttributes";
|
||||||
const char* kOverlayCapabilityKey = "overlayCapability";
|
const char* kOverlayCapabilityKey = "overlayCapability";
|
||||||
const char* kDx12VulkanVersionInfoKey = "dx12VulkanVersionInfo";
|
const char* kDx12VulkanVersionInfoKey = "dx12VulkanVersionInfo";
|
||||||
|
@ -41,6 +43,8 @@ class GPUInfoEnumerator final : public gpu::GPUInfo::Enumerator {
|
||||||
void EndVideoDecodeAcceleratorSupportedProfile() override;
|
void EndVideoDecodeAcceleratorSupportedProfile() override;
|
||||||
void BeginVideoEncodeAcceleratorSupportedProfile() override;
|
void BeginVideoEncodeAcceleratorSupportedProfile() override;
|
||||||
void EndVideoEncodeAcceleratorSupportedProfile() override;
|
void EndVideoEncodeAcceleratorSupportedProfile() override;
|
||||||
|
void BeginImageDecodeAcceleratorSupportedProfile() override;
|
||||||
|
void EndImageDecodeAcceleratorSupportedProfile() override;
|
||||||
void BeginAuxAttributes() override;
|
void BeginAuxAttributes() override;
|
||||||
void EndAuxAttributes() override;
|
void EndAuxAttributes() override;
|
||||||
void BeginOverlayCapability() override;
|
void BeginOverlayCapability() override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue