2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "DirtyRegion.h"
13 #define DIRTYREGION_SOLVER_FILL_VIEWPORT_ALWAYS 0
14 #define DIRTYREGION_SOLVER_UNION 1
15 #define DIRTYREGION_SOLVER_COST_REDUCTION 2
16 #define DIRTYREGION_SOLVER_FILL_VIEWPORT_ON_CHANGE 3
18 class IDirtyRegionSolver
21 virtual ~IDirtyRegionSolver() = default;
23 // Takes a number of dirty regions which will become a number of needed rendering passes.
24 virtual void Solve(const CDirtyRegionList
&input
, CDirtyRegionList
&output
) = 0;