summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-01-20 12:25:26 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-01-20 12:25:26 -0800
commita423d868009b9961597365ce7f190aef23f4b1cc (patch)
tree755aab7bd7af26b40e43ea2b38d2ed6f0641e19e /services/surfaceflinger/SurfaceFlinger.cpp
parent2e0f0bb3fe63c51fa3154f8ed17bfaf611edbf5d (diff)
parent1d4549ab0312319a79fb37068a3fc63bbb0a3adc (diff)
Merge "clean-up unneeded code" into honeycomb
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 434e473d74b1..5a8888a26622 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -394,14 +394,10 @@ bool SurfaceFlinger::threadLoop()
logger.log(GraphicLog::SF_SWAP_BUFFERS, index);
postFramebuffer();
- logger.log(GraphicLog::SF_UNLOCK_CLIENTS, index);
- unlockClients();
-
logger.log(GraphicLog::SF_REPAINT_DONE, index);
} else {
// pretend we did the post
hw.compositionComplete();
- unlockClients();
usleep(16667); // 60 fps period
}
return true;
@@ -920,17 +916,6 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty)
}
}
-void SurfaceFlinger::unlockClients()
-{
- const LayerVector& drawingLayers(mDrawingState.layersSortedByZ);
- const size_t count = drawingLayers.size();
- sp<LayerBase> const* const layers = drawingLayers.array();
- for (size_t i=0 ; i<count ; ++i) {
- const sp<LayerBase>& layer = layers[i];
- layer->finishPageFlip();
- }
-}
-
void SurfaceFlinger::debugFlashRegions()
{
const DisplayHardware& hw(graphicPlane(0).displayHardware());