Merge "Remove USE_HWC2 usage"
am: 8757179e52
Change-Id: I58fbf7213d42d4b81379464051fff5ba56b99063
This commit is contained in:
@@ -45,9 +45,6 @@ cc_defaults {
|
|||||||
],
|
],
|
||||||
|
|
||||||
product_variables: {
|
product_variables: {
|
||||||
device_uses_hwc2: {
|
|
||||||
cflags: ["-DUSE_HWC2"],
|
|
||||||
},
|
|
||||||
eng: {
|
eng: {
|
||||||
lto: {
|
lto: {
|
||||||
never: true,
|
never: true,
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ static FrameInfoIndex sFrameStart = FrameInfoIndex::IntendedVsync;
|
|||||||
JankTracker::JankTracker(ProfileDataContainer* globalData, const DisplayInfo& displayInfo) {
|
JankTracker::JankTracker(ProfileDataContainer* globalData, const DisplayInfo& displayInfo) {
|
||||||
mGlobalData = globalData;
|
mGlobalData = globalData;
|
||||||
nsecs_t frameIntervalNanos = static_cast<nsecs_t>(1_s / displayInfo.fps);
|
nsecs_t frameIntervalNanos = static_cast<nsecs_t>(1_s / displayInfo.fps);
|
||||||
#if USE_HWC2
|
|
||||||
nsecs_t sfOffset = frameIntervalNanos - (displayInfo.presentationDeadline - 1_ms);
|
nsecs_t sfOffset = frameIntervalNanos - (displayInfo.presentationDeadline - 1_ms);
|
||||||
nsecs_t offsetDelta = sfOffset - displayInfo.appVsyncOffset;
|
nsecs_t offsetDelta = sfOffset - displayInfo.appVsyncOffset;
|
||||||
// There are two different offset cases. If the offsetDelta is positive
|
// 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.
|
// return due to the staggering of VSYNC-app & VSYNC-sf.
|
||||||
mDequeueTimeForgiveness = offsetDelta + 4_ms;
|
mDequeueTimeForgiveness = offsetDelta + 4_ms;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
setFrameInterval(frameIntervalNanos);
|
setFrameInterval(frameIntervalNanos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user