commit | a9b1aa0b0dded03256a4deae50b4e94393506547 | [log] [tgz] |
---|---|---|
author | Dan Stoza <stoza@google.com> | Thu Jun 01 14:16:23 2017 -0700 |
committer | Dan Stoza <stoza@google.com> | Wed Jul 12 14:16:33 2017 -0700 |
tree | 9a6a4f93cfa8f7afcf022040364ac81698af825d | |
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