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

* commit '28e89fed092dfc1d4a182e98a59f4ec5c3148625':
  don't capture hidden layers in screenshots
This commit is contained in:
Mathias Agopian 2013-03-15 23:17:45 +00:00 committed by Android Git Automerger
commit 6f880c32bf

View File

@ -2719,9 +2719,11 @@ status_t SurfaceFlinger::captureScreenImplLocked(
const Layer::State& state(layer->drawingState());
if (state.layerStack == hw->getLayerStack()) {
if (state.z >= minLayerZ && state.z <= maxLayerZ) {
if (filtering) layer->setFiltering(true);
layer->draw(hw);
if (filtering) layer->setFiltering(false);
if (layer->isVisible()) {
if (filtering) layer->setFiltering(true);
layer->draw(hw);
if (filtering) layer->setFiltering(false);
}
}
}
}