summaryrefslogtreecommitdiff
path: root/libs/hwui/JankTracker.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2018-11-28 17:01:38 -0800
committer android-build-merger <android-build-merger@google.com> 2018-11-28 17:01:38 -0800
commit70a2813e861ed728d0aa2b2d50977b3b99876149 (patch)
treea600951b78db9a194d0029764be01a37de123a3b /libs/hwui/JankTracker.cpp
parente364e4aa308e591089d140a4636b2bb9a677e63b (diff)
parent8757179e52e1997876e3af3b574d97df3ea2385a (diff)
Merge "Remove USE_HWC2 usage"
am: 8757179e52 Change-Id: I58fbf7213d42d4b81379464051fff5ba56b99063
Diffstat (limited to 'libs/hwui/JankTracker.cpp')
-rw-r--r--libs/hwui/JankTracker.cpp2
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);
}