Index: cc/heads_up_display_layer_impl.cc |
diff --git a/cc/heads_up_display_layer_impl.cc b/cc/heads_up_display_layer_impl.cc |
index 4444c9b0306ce2317fd395bc429954b8efc8e3fa..1c0c5fec66d83b407e486e4ce0c6abb4207bba07 100644 |
--- a/cc/heads_up_display_layer_impl.cc |
+++ b/cc/heads_up_display_layer_impl.cc |
@@ -46,6 +46,7 @@ HeadsUpDisplayLayerImpl::HeadsUpDisplayLayerImpl(int id) |
: LayerImpl(id) |
, m_averageFPS(0) |
, m_stdDeviation(0) |
+ , m_showFPSCounter(false) |
{ |
} |
@@ -58,6 +59,11 @@ void HeadsUpDisplayLayerImpl::setFontAtlas(scoped_ptr<FontAtlas> fontAtlas) |
m_fontAtlas = fontAtlas.Pass(); |
} |
+void HeadsUpDisplayLayerImpl::setShowFPSCounter(bool show) |
+{ |
+ m_showFPSCounter = show; |
+} |
+ |
void HeadsUpDisplayLayerImpl::willDraw(ResourceProvider* resourceProvider) |
{ |
LayerImpl::willDraw(resourceProvider); |
@@ -148,7 +154,7 @@ void HeadsUpDisplayLayerImpl::drawHudContents(SkCanvas* canvas) |
int platformLayerTreeTop = 0; |
- if (settings.showFPSCounter) |
+ if (m_showFPSCounter) |
platformLayerTreeTop = drawFPSCounter(canvas, layerTreeHostImpl()->fpsCounter()); |
if (settings.showPlatformLayerTree && m_fontAtlas.get()) { |