OSDN Git Service

Only enumerate display_timing when present timestamp supported
authorIan Elliott <ianelliott@google.com>
Mon, 10 Apr 2017 20:42:30 +0000 (14:42 -0600)
committerIan Elliott <ianelliott@google.com>
Wed, 12 Apr 2017 22:15:06 +0000 (22:15 +0000)
commit5c34de2c12ab2638fd6b16f1b77dedd0ffa3ab27
tree378d2b1ed3e51eba4655e1566e696f06a4f084ac
parente502a9b2e26c671bbb4e48c9ec5d8cb5651e3f36
Only enumerate display_timing when present timestamp supported

Test: CTS and cube demo.
Bug: 36887025

Vulkan should only enumerate the VK_GOOGLE_display_timing extension if
the device supports reliably returning the present timestamp.  Vulkan
will determine this by reading a property that SurfaceFlinger will set
(based on the HWC2::Capability::PresentFenceIsNotReliable capability).

Change-Id: I6025be5f9120a8f02f228b8437b64be4ff8cfb17
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h
services/surfaceflinger/SurfaceFlinger_hwc1.cpp
vulkan/libvulkan/driver.cpp