summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Horn <doughorn@google.com>2021-01-07 12:10:36 -0800
committerDoug Horn <doughorn@google.com>2021-01-07 12:10:39 -0800
commit36fa8a7f89f6e89bf00313f18f1290059284fc54 (patch)
tree69f3afa6caa48240d1b437806f3fabc240674b9a
parent0cb14d546b365fbcd58bb7269f8107796faf9129 (diff)
downloadvulkan-cereal-36fa8a7f89f6e89bf00313f18f1290059284fc54.tar.gz
Add missing type() method.
This is not actually used on vulkan-cereal but aligns this file with qemu. Change-Id: I8686d868d0e2b2c84ca47105c711c6ce0cc0cedb
-rw-r--r--base/SharedMemory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/SharedMemory.h b/base/SharedMemory.h
index 86079d76..a8337c92 100644
--- a/base/SharedMemory.h
+++ b/base/SharedMemory.h
@@ -207,7 +207,7 @@ public:
std::string name() const { return mName; }
memory_type get() const { return mAddr; }
memory_type operator*() const { return get(); }
-
+ ShareType type() const { return mShareType; }
handle_type getFd() { return mFd; }
bool isMapped() const { return mAddr != unmappedMemory(); }