aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/TimelinePacketWriterFactory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'profiling/client/src/TimelinePacketWriterFactory.hpp')
-rw-r--r--profiling/client/src/TimelinePacketWriterFactory.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/profiling/client/src/TimelinePacketWriterFactory.hpp b/profiling/client/src/TimelinePacketWriterFactory.hpp
new file mode 100644
index 0000000000..607770f723
--- /dev/null
+++ b/profiling/client/src/TimelinePacketWriterFactory.hpp
@@ -0,0 +1,33 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "IBufferManager.hpp"
+
+#include <client/include/ISendTimelinePacket.hpp>
+
+#include <memory>
+
+namespace arm
+{
+
+namespace pipe
+{
+
+class TimelinePacketWriterFactory
+{
+public:
+ TimelinePacketWriterFactory(IBufferManager& bufferManager) : m_BufferManager(bufferManager) {}
+
+ std::unique_ptr<ISendTimelinePacket> GetSendTimelinePacket() const;
+
+private:
+ IBufferManager& m_BufferManager;
+};
+
+} // namespace pipe
+
+} // namespace arm