am a493be58: don\'t capture hidden layers in screenshots

* commit 'a493be5825d15f6a94d1afb5910db075a2a7abc1':
  don't capture hidden layers in screenshots
This commit is contained in:
Mathias Agopian 2013-03-15 23:16:30 +00:00 committed by Android Git Automerger
commit 28e89fed09

View File

@ -2719,12 +2719,14 @@ status_t SurfaceFlinger::captureScreenImplLocked(
const Layer::State& state(layer->drawingState());
if (state.layerStack == hw->getLayerStack()) {
if (state.z >= minLayerZ && state.z <= maxLayerZ) {
if (layer->isVisible()) {
if (filtering) layer->setFiltering(true);
layer->draw(hw);
if (filtering) layer->setFiltering(false);
}
}
}
}
// compositionComplete is needed for older driver
hw->compositionComplete();