aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordan sinclair <dsinclair@google.com>2019-05-13 13:17:46 -0400
committerGitHub <noreply@github.com>2019-05-13 13:17:46 -0400
commit7991d429236d41d4701788a633452e62e755a05f (patch)
tree19cc6eee62b67e1ed410592b8bd9483fd765ce96 /include
parent0bb996460399eeced77a63cf9875c5708864de12 (diff)
downloadamber-7991d429236d41d4701788a633452e62e755a05f.tar.gz
Allow setting name of framebuffer to extract. (#507)
Currently the framebuffer must be named 'framebuffer' for the image extraction to work correctly. This CL adds a -I option to the sample app and changes the BufferInfo structure to record if it is an image that is being extracted. Fixes #505
Diffstat (limited to 'include')
-rw-r--r--include/amber/amber.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/amber/amber.h b/include/amber/amber.h
index 6360f37..2b14475 100644
--- a/include/amber/amber.h
+++ b/include/amber/amber.h
@@ -51,6 +51,8 @@ struct BufferInfo {
BufferInfo& operator=(const BufferInfo&);
+ /// Determines if this is an image buffer.
+ bool is_image_buffer;
/// Holds the buffer name
std::string buffer_name;
/// Holds the buffer width