summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h')
-rw-r--r--Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h b/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h
index d56f8ab..09f198a 100644
--- a/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h
+++ b/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h
@@ -27,8 +27,10 @@
#if USE(ACCELERATED_COMPOSITING)
+#include "Font.h"
#include "LayerRendererChromium.h"
+
namespace WebCore {
class GeometryBinding;
@@ -59,17 +61,26 @@ public:
private:
explicit CCHeadsUpDisplay(LayerRendererChromium* owner);
void drawHudContents(GraphicsContext*, const IntSize& hudSize);
+ void drawFPSCounter(GraphicsContext*, int top, int height);
+ void drawPlatformLayerTree(GraphicsContext*, int top);
+
int m_currentFrameNumber;
+ double m_filteredFrameTime;
+
OwnPtr<LayerTexture> m_hudTexture;
LayerRendererChromium* m_layerRenderer;
- double m_presentTimeHistoryInSec[2];
+ static const int kPresentHistorySize = 64;
+ double m_presentTimeHistoryInSec[kPresentHistorySize];
bool m_showFPSCounter;
bool m_showPlatformLayerTree;
+
+ OwnPtr<Font> m_smallFont;
+ OwnPtr<Font> m_mediumFont;
};
}