diff options
author | John Reck <jreck@google.com> | 2018-11-28 17:15:58 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-11-28 17:15:58 -0800 |
commit | 0ff158799a46a9c468e6a6e67a570d197183564c (patch) | |
tree | 1c46679d479963570234ec8605d2b43d76e8dbd0 /libs/hwui/JankTracker.cpp | |
parent | 4562cdfc5ec2a7280439c601af595bcad1b75370 (diff) | |
parent | 70a2813e861ed728d0aa2b2d50977b3b99876149 (diff) |
Merge "Remove USE_HWC2 usage" am: 8757179e52
am: 70a2813e86
Change-Id: Ida5cf0bb3a644e29c9216fabb89670bf4ec58220
Diffstat (limited to 'libs/hwui/JankTracker.cpp')
-rw-r--r-- | libs/hwui/JankTracker.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/hwui/JankTracker.cpp b/libs/hwui/JankTracker.cpp index f2d50cd42523..39ed9a0478b6 100644 --- a/libs/hwui/JankTracker.cpp +++ b/libs/hwui/JankTracker.cpp @@ -81,7 +81,6 @@ static FrameInfoIndex sFrameStart = FrameInfoIndex::IntendedVsync; JankTracker::JankTracker(ProfileDataContainer* globalData, const DisplayInfo& displayInfo) { mGlobalData = globalData; nsecs_t frameIntervalNanos = static_cast<nsecs_t>(1_s / displayInfo.fps); -#if USE_HWC2 nsecs_t sfOffset = frameIntervalNanos - (displayInfo.presentationDeadline - 1_ms); nsecs_t offsetDelta = sfOffset - displayInfo.appVsyncOffset; // There are two different offset cases. If the offsetDelta is positive @@ -95,7 +94,6 @@ JankTracker::JankTracker(ProfileDataContainer* globalData, const DisplayInfo& di // return due to the staggering of VSYNC-app & VSYNC-sf. mDequeueTimeForgiveness = offsetDelta + 4_ms; } -#endif setFrameInterval(frameIntervalNanos); } |