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 "IDirtyRegionSolver.h"
13 #if defined(TARGET_DARWIN_EMBEDDED)
14 #define DEFAULT_BUFFERING 4
16 #define DEFAULT_BUFFERING 3
19 class CDirtyRegionTracker
22 explicit CDirtyRegionTracker(int buffering
= DEFAULT_BUFFERING
);
23 ~CDirtyRegionTracker();
24 void SelectAlgorithm();
25 void MarkDirtyRegion(const CDirtyRegion
®ion
);
27 const CDirtyRegionList
&GetMarkedRegions() const;
28 CDirtyRegionList
GetDirtyRegions();
29 void CleanMarkedRegions();
32 CDirtyRegionList m_markedRegions
;
34 IDirtyRegionSolver
*m_solver
;