Merge "Use fenceTime from drawingState instead of bufferInfo" into rvc-dev am: 6c457787c9 am: 70b9c075f5

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11813840

Change-Id: Ie259a8322842b993414d7ea0117d40b46cdc5dea
diff --git a/services/surfaceflinger/BufferStateLayer.cpp b/services/surfaceflinger/BufferStateLayer.cpp
index 464ea9f..790f2ec 100644
--- a/services/surfaceflinger/BufferStateLayer.cpp
+++ b/services/surfaceflinger/BufferStateLayer.cpp
@@ -578,7 +578,7 @@
     }
 
     mFlinger->mTimeStats->setAcquireFence(layerId, mDrawingState.frameNumber,
-                                          mBufferInfo.mFenceTime);
+                                          std::make_shared<FenceTime>(mDrawingState.acquireFence));
     mFlinger->mTimeStats->setLatchTime(layerId, mDrawingState.frameNumber, latchTime);
 
     mCurrentStateModified = false;