Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2479)

Unified Diff: cc/heads_up_display_layer_impl.cc

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/layer_tree_host.h » ('j') | cc/single_thread_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4b64b1aa00ab261b4a7e227db29ff275c08bb43c..e3761f5bcafcbc6133167107d35bd0892d4600ca 100644
--- a/cc/heads_up_display_layer_impl.cc
+++ b/cc/heads_up_display_layer_impl.cc
@@ -146,14 +146,12 @@ void CCHeadsUpDisplayLayerImpl::drawHudContents(SkCanvas* canvas)
int fpsCounterTop = 2;
int platformLayerTreeTop;
- if (settings.showFPSCounter)
+ if (settings.showFPSCounter || layerTreeHostImpl()->showFPSCounter()) {
brianderson 2012/10/18 00:13:21 How hard would it be to have the command-line flag
egraether 2012/10/18 15:56:30 It would be nice, but I think it's not a real prob
danakj 2012/10/18 16:45:07 I agree with Brian here, having a single point dec
+ drawFPSCounter(canvas, layerTreeHostImpl()->fpsCounter(), fpsCounterTop, fpsCounterHeight);
platformLayerTreeTop = fpsCounterTop + fpsCounterHeight;
- else
+ } else
platformLayerTreeTop = 0;
- if (settings.showFPSCounter)
- drawFPSCounter(canvas, layerTreeHostImpl()->fpsCounter(), fpsCounterTop, fpsCounterHeight);
-
if (settings.showPlatformLayerTree && m_fontAtlas.get()) {
std::string layerTree = layerTreeHostImpl()->layerTreeAsText();
m_fontAtlas->drawText(canvas, createPaint(), layerTree, gfx::Point(2, platformLayerTreeTop), bounds());
« no previous file with comments | « no previous file | cc/layer_tree_host.h » ('j') | cc/single_thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698