diff options
| author | 2009-04-21 18:28:33 -0700 | |
|---|---|---|
| committer | 2009-04-24 16:31:11 -0700 | |
| commit | ef07dda442f210bc7a6b5fbdd4a0bed4e6d8ad50 (patch) | |
| tree | 8ba3ffa27672206d25fb070d24544f506f1d30ac /libs/surfaceflinger/SurfaceFlinger.cpp | |
| parent | a3aa6c9aa96873a70e2ff3170218a275f503520e (diff) | |
get rid of the "show fps" debug option
Diffstat (limited to 'libs/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | libs/surfaceflinger/SurfaceFlinger.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libs/surfaceflinger/SurfaceFlinger.cpp b/libs/surfaceflinger/SurfaceFlinger.cpp index 993a6ae02a2d..fdfaad3dedf5 100644 --- a/libs/surfaceflinger/SurfaceFlinger.cpp +++ b/libs/surfaceflinger/SurfaceFlinger.cpp @@ -177,7 +177,6 @@ SurfaceFlinger::SurfaceFlinger() mFreezeCount(0), mFreezeDisplayTime(0), mDebugRegion(0), - mDebugFps(0), mDebugBackground(0), mDebugNoBootAnimation(0), mConsoleSignals(0), @@ -196,14 +195,11 @@ void SurfaceFlinger::init() mDebugRegion = atoi(value); property_get("debug.sf.showbackground", value, "0"); mDebugBackground = atoi(value); - property_get("debug.sf.showfps", value, "0"); - mDebugFps = atoi(value); property_get("debug.sf.nobootanimation", value, "0"); mDebugNoBootAnimation = atoi(value); LOGI_IF(mDebugRegion, "showupdates enabled"); LOGI_IF(mDebugBackground, "showbackground enabled"); - LOGI_IF(mDebugFps, "showfps enabled"); LOGI_IF(mDebugNoBootAnimation, "boot animation disabled"); } @@ -525,10 +521,6 @@ void SurfaceFlinger::postFramebuffer() if (!mInvalidRegion.isEmpty()) { const DisplayHardware& hw(graphicPlane(0).displayHardware()); - if (UNLIKELY(mDebugFps)) { - debugShowFPS(); - } - hw.flip(mInvalidRegion); mInvalidRegion.clear(); @@ -1547,9 +1539,7 @@ status_t SurfaceFlinger::onTransact( switch (code) { case 1000: // SHOW_CPU, NOT SUPPORTED ANYMORE return NO_ERROR; - case 1001: // SHOW_FPS - n = data.readInt32(); - mDebugFps = n ? 1 : 0; + case 1001: // SHOW_FPS, NOT SUPPORTED ANYMORE return NO_ERROR; case 1002: // SHOW_UPDATES n = data.readInt32(); |