Add tracing for onFrameReplaced

As a part of the queueBuffer call, in async mode, the buffer at the
front of the queue can be replaced. This change adds a tracing for such
replace call and will use the same event type as Queue.

Test: Run GAPID vulkan cube app or any other app that uses async mode
and check if Queue event shows up
Bug: 145828619

Change-Id: I9f86c79dab09bf1071a79adbb743276e07a9b47f
diff --git a/services/surfaceflinger/BufferQueueLayer.cpp b/services/surfaceflinger/BufferQueueLayer.cpp
index 945abd7..e4e4bc7 100644
--- a/services/surfaceflinger/BufferQueueLayer.cpp
+++ b/services/surfaceflinger/BufferQueueLayer.cpp
@@ -455,6 +455,10 @@
         mLastFrameNumberReceived = item.mFrameNumber;
         mQueueItemCondition.broadcast();
     }
+
+    const int32_t layerId = getSequence();
+    mFlinger->mFrameTracer->traceTimestamp(layerId, item.mGraphicBuffer->getId(), item.mFrameNumber,
+                                           systemTime(), FrameTracer::FrameEvent::QUEUE);
     mConsumer->onBufferAvailable(item);
 }