commit | abcda352f126016ce4dd227d34088e8c7957c32e | [log] [tgz] |
---|---|---|
author | Dan Stoza <stoza@google.com> | Thu Jun 01 14:37:39 2017 -0700 |
committer | Dan Stoza <stoza@google.com> | Wed Jul 12 14:16:43 2017 -0700 |
tree | 5ad5230da8009c1b0038ce20158f6992508fcd43 | |
parent | a9b1aa0b0dded03256a4deae50b4e94393506547 [diff] |
SF: Add ImageHolder for screenshot code Adds a simple ImageHolder class, which holds an EGLImage and destroys it either when an explicit destroy() method is called or when the class is destructed (whichever occurs first). This allows us to reduce the nesting of, and otherwise simplify, the captureScreenImplLocked method of SurfaceFlinger. Bug: 62257775 Test: SurfaceFlinger_test and manually verified that screenshots still work Change-Id: I800208e8f6bedd2ce66827268ecc64968dbe616d