diff options
| author | 2017-06-01 14:16:23 -0700 | |
|---|---|---|
| committer | 2017-07-12 14:16:33 -0700 | |
| commit | a9b1aa0b0dded03256a4deae50b4e94393506547 (patch) | |
| tree | 9a6a4f93cfa8f7afcf022040364ac81698af825d /vulkan/libvulkan/api.cpp | |
| parent | 5ebcaf1bb09dbf2f7375163997acd843a0e5780a (diff) | |
SF: Add WindowDisconnector for screenshot code
Adds a simple WindowDisconnector class that holds an ANativeWindow* and
disconnects from it when it goes out of scope. This allows us to
drastically reduce the nesting of the captureScreenImplLocked method
of SurfaceFlinger.
Bug: 62257775
Test: SurfaceFlinger_test and manually verified that screenshots still
work
Change-Id: I55123a7a6b2036158d0959328b0e6f8b206cce5d
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions