Home
last modified time | relevance | path

Searched refs:AddressedMessage (Results 1 – 2 of 2) sorted by relevance

/external/skqp/tests/
DMessageBusTest.cpp65 struct AddressedMessage { struct
69 static inline bool SkShouldPostMessageToBus(const AddressedMessage& msg, uint32_t msgBusUniqueID) { in SkShouldPostMessageToBus()
79 DECLARE_SKMESSAGEBUS_MESSAGE(AddressedMessage)
82 SkMessageBus<AddressedMessage>::Inbox inbox1(1), inbox2(2); in DEF_TEST()
84 SkMessageBus<AddressedMessage>::Post({0}); // Should go to both in DEF_TEST()
85 SkMessageBus<AddressedMessage>::Post({1}); // Should go to inbox1 in DEF_TEST()
86 SkMessageBus<AddressedMessage>::Post({2}); // Should go to inbox2 in DEF_TEST()
87 SkMessageBus<AddressedMessage>::Post({3}); // Should go nowhere in DEF_TEST()
89 SkTArray<AddressedMessage> messages; in DEF_TEST()
/external/skia/tests/
DMessageBusTest.cpp122 struct AddressedMessage { struct
126 static inline bool SkShouldPostMessageToBus(const AddressedMessage& msg, in SkShouldPostMessageToBus()
137 DECLARE_SKMESSAGEBUS_MESSAGE(AddressedMessage, GrDirectContext::DirectContextID, true) in DECLARE_SKMESSAGEBUS_MESSAGE() argument
141 using AddressedMessageBus = SkMessageBus<AddressedMessage, ID>; in DECLARE_SKMESSAGEBUS_MESSAGE()
155 SkTArray<AddressedMessage> messages; in DECLARE_SKMESSAGEBUS_MESSAGE()