OSDN Git Service

vulkan: constify DebugReportCallbackList::Message
[android-x86/frameworks-native.git] / vulkan / libvulkan / debug_report.h
index 7a03d4a..6f70f18 100644 (file)
@@ -52,7 +52,7 @@ class DebugReportCallbackList {
                  size_t location,
                  int32_t message_code,
                  const char* layer_prefix,
-                 const char* message);
+                 const char* message) const;
 
     static Node* FromHandle(VkDebugReportCallbackEXT handle) {
         return reinterpret_cast<Node*>(uintptr_t(handle));
@@ -78,7 +78,7 @@ class DebugReportCallbackList {
     };
 
     // TODO(jessehall): replace with std::shared_mutex when available in libc++
-    std::shared_timed_mutex rwmutex_;
+    mutable std::shared_timed_mutex rwmutex_;
     Node head_;
 };