Invoke the packet creator's OnFrameAddedToPacket method when stream frames are added via the fast path.

gfe-relnote: n/a - not used in the GFE
PiperOrigin-RevId: 240446816
Change-Id: I9d968c4d3c1fbcca1798cf0600121946e70ee9f5
diff --git a/quic/core/quic_packet_creator.cc b/quic/core/quic_packet_creator.cc
index d9b481c..951fb81 100644
--- a/quic/core/quic_packet_creator.cc
+++ b/quic/core/quic_packet_creator.cc
@@ -448,6 +448,9 @@
 
   const bool set_fin = fin && (bytes_consumed == remaining_data_size);
   QuicStreamFrame frame(id, set_fin, stream_offset, bytes_consumed);
+  if (debug_delegate_ != nullptr) {
+    debug_delegate_->OnFrameAddedToPacket(QuicFrame(frame));
+  }
   QUIC_DVLOG(1) << ENDPOINT << "Adding frame: " << frame;
 
   // TODO(ianswett): AppendTypeByte and AppendStreamFrame could be optimized