OSDN Git Service

vulkan: refactor DebugReportCallbackList
authorChia-I Wu <olv@google.com>
Thu, 5 May 2016 04:43:03 +0000 (12:43 +0800)
committerChia-I Wu <olv@google.com>
Fri, 6 May 2016 01:31:36 +0000 (09:31 +0800)
commita0d40aaf12435fe82bc9c1612dbe97ea2a60da31
treeab48de5539223a95090209c06175920c57be90b5
parent0b546c408686e4353dfe4b3a12be1048b966944d
vulkan: refactor DebugReportCallbackList

Simplify DebugReportCallbackList to be a thread-safe list with three
methods:

 - AddCallback adds a node to the list
 - RemoveCallback removes a node from the list
 - Message invokes each of the nodes on the list

Add some static methods for Node* and VkDebugReportCallbackEXT
conversions.

Bug: 28120066
Change-Id: I109c6eff368cacb37508e2549dbd0b5dfa23bcb3
vulkan/libvulkan/debug_report.cpp
vulkan/libvulkan/debug_report.h