// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; namespace osu.Framework.Graphics.Pooling { public interface IDrawablePool { /// /// Get a drawable from this pool. /// /// An optional action to be performed on this drawable immediately after retrieval. Should generally be used to prepare the drawable into a usable state. /// The drawable. PoolableDrawable Get(Action setupAction = null); /// /// Return a drawable after use. /// /// The drwable to return. Should have originally come from this pool. void Return(PoolableDrawable pooledDrawable); } }