[ExecString] combine SplitParameters with identical function of CUtil
[xbmc.git] / xbmc / guilib / DirtyRegionTracker.h
blob697cb6405f6db1a27af2a1d6876cf746b3f05a38
1 /*
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.
7 */
9 #pragma once
11 #include "IDirtyRegionSolver.h"
13 #if defined(TARGET_DARWIN_EMBEDDED)
14 #define DEFAULT_BUFFERING 4
15 #else
16 #define DEFAULT_BUFFERING 3
17 #endif
19 class CDirtyRegionTracker
21 public:
22 explicit CDirtyRegionTracker(int buffering = DEFAULT_BUFFERING);
23 ~CDirtyRegionTracker();
24 void SelectAlgorithm();
25 void MarkDirtyRegion(const CDirtyRegion &region);
27 const CDirtyRegionList &GetMarkedRegions() const;
28 CDirtyRegionList GetDirtyRegions();
29 void CleanMarkedRegions();
31 private:
32 CDirtyRegionList m_markedRegions;
33 int m_buffering;
34 IDirtyRegionSolver *m_solver;