// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Pooling; using osu.Game.Rulesets.Objects.Pooling; namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis { public partial class FrameMarkerContainer : PooledDrawableWithLifetimeContainer { private readonly DrawablePool pool; public FrameMarkerContainer() { AddInternal(pool = new DrawablePool(80)); } protected override AnalysisMarker GetDrawable(AnalysisFrameEntry entry) => pool.Get(d => d.Apply(entry)); } }