Jiyong Park | 200825e | 2017-01-14 19:40:33 +0900 | [diff] [blame^] | 1 | #include "SurfaceFlingerConfigs.h" |
| 2 | |
| 3 | #include <android-base/logging.h> |
| 4 | |
| 5 | namespace android { |
| 6 | namespace hardware { |
| 7 | namespace configstore { |
| 8 | namespace V1_0 { |
| 9 | namespace implementation { |
| 10 | |
| 11 | // Methods from ::android::hardware::configstore::V1_0::ISurfaceFlingerConfigs follow. |
| 12 | Return<void> SurfaceFlingerConfigs::vsyncEventPhaseOffsetNs(vsyncEventPhaseOffsetNs_cb _hidl_cb) { |
| 13 | #ifdef VSYNC_EVENT_PHASE_OFFSET_NS |
| 14 | _hidl_cb({true, VSYNC_EVENT_PHASE_OFFSET_NS}); |
| 15 | LOG(INFO) << "vsync event phase offset ns = " << VSYNC_EVENT_PHASE_OFFSET_NS; |
| 16 | #else |
| 17 | _hidl_cb({false, 0}); |
| 18 | #endif |
| 19 | return Void(); |
| 20 | } |
| 21 | |
| 22 | |
| 23 | // Methods from ::android::hidl::base::V1_0::IBase follow. |
| 24 | |
| 25 | ISurfaceFlingerConfigs* HIDL_FETCH_ISurfaceFlingerConfigs(const char* /* name */) { |
| 26 | return new SurfaceFlingerConfigs(); |
| 27 | } |
| 28 | |
| 29 | } // namespace implementation |
| 30 | } // namespace V1_0 |
| 31 | } // namespace configstore |
| 32 | } // namespace hardware |
| 33 | } // namespace android |