summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2017-06-01 14:37:39 -0700
committer Dan Stoza <stoza@google.com> 2017-07-12 14:16:43 -0700
commitabcda352f126016ce4dd227d34088e8c7957c32e (patch)
tree5ad5230da8009c1b0038ce20158f6992508fcd43 /libs/gui/ConsumerBase.cpp
parenta9b1aa0b0dded03256a4deae50b4e94393506547 (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
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions