* commit '28e89fed092dfc1d4a182e98a59f4ec5c3148625': don't capture hidden layers in screenshots
This commit is contained in:
commit
6f880c32bf
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user