summaryrefslogtreecommitdiff
path: root/vulkan
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-08-17 17:12:26 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-08-17 17:12:26 +0000
commitd711a75dca69270de2b0eafab958c2a12ed7bbbc (patch)
treea8e9b407147d35152010c8f931cae7c7b282b666 /vulkan
parentf7ea2f631f52ba13be0f9906964ea1039c1022ca (diff)
parent6f61f6578a7f1deb350d246334cb53e8be1c2741 (diff)
Merge "vulkan: avoid waiting for service.sf.present_timestamp creation" am: 2ea51b8478 am: 6f61f6578a
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1401796 Change-Id: I70e95fd72b12b7fb45b7ea4c317f61321b8e6540
Diffstat (limited to 'vulkan')
-rw-r--r--vulkan/libvulkan/driver.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp
index 74ef0e7073..01cbf399ff 100644
--- a/vulkan/libvulkan/driver.cpp
+++ b/vulkan/libvulkan/driver.cpp
@@ -964,9 +964,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});