summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2020-09-18 15:01:04 -0700
committer chaviw <chaviw@google.com> 2020-09-22 10:58:50 -0700
commitc5676c6ee0687fbd0360d59be5dd74c4fc0083aa (patch)
treee754e024904d2ef2c2df3911f22631158df1ce11 /libs/gui/BufferQueueThreadState.cpp
parentd11cbc50ceb6a1fadc7c4e4a565b7c8cdcf3de05 (diff)
Added SKIP_SCREENSHOT flag for layers
The previous way to skip taking a layer in the screenshot was to set the windowType to WINDOW_TYPE_DONT_SCREENSHOT. This is confusing since skipping screenshots is not really related to window type. Instead, use the new flag SKIP_SCREENSHOT that can be set when the layer is created or in a transaction. This simplifies the behavior when deciding if the layer should be screenshot. This also fixes a bug where if the SKIP_SCREENSHOT flag was added after creation, the layer would still be screenshot since the flag primaryDisplayOnly was not changed. This also makes it so the flag is inherited by the children. So if a parent sets the flag, the children will also not be in the screenshot. Test: ScreenCapture_test Fixes: 168943350 Change-Id: I26d2b3d025d8daac17b303a96d5b54fc104f0d50
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions