| 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 "guilib/GUIDialog.h" |
| 12 |
#ifdef TARGET_POSIX |
| 13 |
#include "platform/posix/PosixResourceCounter.h" |
| 14 |
#endif |
| 15 |
|
| 16 |
class CGUITextLayout; |
| 17 |
|
| 18 |
class CGUIWindowDebugInfo : |
| 19 |
public CGUIDialog |
| 20 |
{ |
| 21 |
public: |
| 22 |
CGUIWindowDebugInfo(); |
| 23 |
~CGUIWindowDebugInfo() override; |
| 24 |
void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override; |
| 25 |
void Render() override; |
| 26 |
bool OnMessage(CGUIMessage &message) override; |
| 27 |
protected: |
| 28 |
void UpdateVisibility() override; |
| 29 |
private: |
| 30 |
CGUITextLayout *m_layout; |
| 31 |
#ifdef TARGET_POSIX |
| 32 |
CPosixResourceCounter m_resourceCounter; |
| 33 |
#endif |
| 34 |
}; |