am a493be58
: don\'t capture hidden layers in screenshots
* commit 'a493be5825d15f6a94d1afb5910db075a2a7abc1': don't capture hidden layers in screenshots
This commit is contained in:
commit
28e89fed09
@ -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