Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
bentleyottmann::EventQueueTestingPeer Class Reference

Static Public Member Functions

static Event NextEvent (EventQueue *eq)
 

Detailed Description

Definition at line 8 of file EventQueueTest.cpp.

Member Function Documentation

◆ NextEvent()

static Event bentleyottmann::EventQueueTestingPeer::NextEvent ( EventQueue eq)
inlinestatic

Definition at line 10 of file EventQueueTest.cpp.

10 {
11 SkASSERT(eq->hasMoreEvents());
12
13 auto firstElement = eq->fQueue.begin();
14
15 // Extract event at the beginning of the queue.
16 Event event = *firstElement;
17
18 // Remove the beginning element from the queue.
19 eq->fQueue.erase(firstElement);
20
21 return event;
22 }
static bool eq(const SkM44 &a, const SkM44 &b, float tol)
Definition: M44Test.cpp:18
#define SkASSERT(cond)
Definition: SkAssert.h:116
FlKeyEvent * event

The documentation for this class was generated from the following file: