diff options
author | 2020-08-15 13:48:36 -0700 | |
---|---|---|
committer | 2020-08-15 14:02:07 -0700 | |
commit | 98d15e0ecef0a10cce9680b573072789431dadf1 (patch) | |
tree | f6acfacf3a58002fc1e773c41190c5c3eed1d843 /vulkan/libvulkan/driver.cpp | |
parent | 09f7bc11ba9bd5ec86051e0ce5540869cd75966a (diff) |
vulkan: avoid waiting for service.sf.present_timestamp creation
This change is to help unblock:
1. ANGLE used as built-in gl driver
2. Vulkan used as RenderEngine backend
Moving the property creation before RenderEngine init can potentially
cause a boot time regression. Those creating gpu contexts before boot
finished are not relying on EGL_ANDROID_get_frame_timestamps or
VK_GOOGLE_display_timing.
Bug: 164717293
Test: manual
Change-Id: Iff34e0a5c4101c3961a078e0d34a2a7fb0391857
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
-rw-r--r-- | vulkan/libvulkan/driver.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index bdf5ddfcd8..6ddb9d9b9a 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp @@ -970,9 +970,7 @@ VkResult EnumerateDeviceExtensionProperties( // conditionally add VK_GOOGLE_display_timing if present timestamps are // supported by the driver: - const std::string timestamp_property("service.sf.present_timestamp"); - android::base::WaitForPropertyCreation(timestamp_property); - if (android::base::GetBoolProperty(timestamp_property, true)) { + if (android::base::GetBoolProperty("service.sf.present_timestamp", false)) { loader_extensions.push_back({ VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME, VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION}); |