diff options
Diffstat (limited to 'xbmc/guilib/IDirtyRegionSolver.h')
-rw-r--r-- | xbmc/guilib/IDirtyRegionSolver.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/xbmc/guilib/IDirtyRegionSolver.h b/xbmc/guilib/IDirtyRegionSolver.h new file mode 100644 index 0000000..6702d07 --- /dev/null +++ b/xbmc/guilib/IDirtyRegionSolver.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2005-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +#include "DirtyRegion.h" + +#define DIRTYREGION_SOLVER_FILL_VIEWPORT_ALWAYS 0 +#define DIRTYREGION_SOLVER_UNION 1 +#define DIRTYREGION_SOLVER_COST_REDUCTION 2 +#define DIRTYREGION_SOLVER_FILL_VIEWPORT_ON_CHANGE 3 + +class IDirtyRegionSolver +{ +public: + virtual ~IDirtyRegionSolver() = default; + + // Takes a number of dirty regions which will become a number of needed rendering passes. + virtual void Solve(const CDirtyRegionList &input, CDirtyRegionList &output) = 0; +}; |