| 1 | /* |
| 2 | * Copyright (C) 2005-2018 Team Kodi |
| 3 | * This file is part of Kodi - https://kodi.tv |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 6 | * See LICENSES/README.md for more information. |
| 7 | */ |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "DirtyRegion.h" |
| 12 | |
| 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 |
| 17 | |
| 18 | class IDirtyRegionSolver |
| 19 | { |
| 20 | public: |
| 21 | virtual ~IDirtyRegionSolver() = default; |
| 22 | |
| 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; |
| 25 | }; |