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());
|
const Layer::State& state(layer->drawingState());
|
||||||
if (state.layerStack == hw->getLayerStack()) {
|
if (state.layerStack == hw->getLayerStack()) {
|
||||||
if (state.z >= minLayerZ && state.z <= maxLayerZ) {
|
if (state.z >= minLayerZ && state.z <= maxLayerZ) {
|
||||||
if (filtering) layer->setFiltering(true);
|
if (layer->isVisible()) {
|
||||||
layer->draw(hw);
|
if (filtering) layer->setFiltering(true);
|
||||||
if (filtering) layer->setFiltering(false);
|
layer->draw(hw);
|
||||||
|
if (filtering) layer->setFiltering(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user