Lines Matching defs:SkEvent
10 #include "SkEvent.h"
12 void SkEvent::initialize(const char* type, size_t typeLen,
25 SkEvent::SkEvent()
30 SkEvent::SkEvent(const SkEvent& src)
37 SkEvent::SkEvent(const SkString& type, SkEventSinkID targetID)
42 SkEvent::SkEvent(const char type[], SkEventSinkID targetID)
48 SkEvent::~SkEvent()
62 void SkEvent::getType(SkString* str) const
77 bool SkEvent::isType(const SkString& str) const
82 bool SkEvent::isType(const char type[], size_t typeLen) const
94 void SkEvent::setType(const char type[], size_t typeLen)
115 void SkEvent::setType(const SkString& type)
124 void SkEvent::inflate(const SkDOM& dom, const SkDOM::Node* node)
142 SkDEBUGCODE(SkDebugf("SkEvent::inflate unrecognized subelement <%s>\n", dom.getName(node));)
149 SkDEBUGCODE(SkDebugf("SkEvent::inflate missing required \"name\" attribute in <data> subelement\n");)
170 SkDebugf("SkEvent::inflate <data name=\"%s\"> subelement missing required type attribute [S32 | scalar | string]\n", name);
182 void SkEvent::dump(const char title[])
281 SkEvent* fEventQHead, *fEventQTail;
282 SkEvent* fDelayQHead;
294 void SkEvent::postDelay(SkMSec delay) {
308 bool wasEmpty = SkEvent::Enqueue(this);
313 SkEvent::SignalNonEmptyQueue();
317 void SkEvent::postTime(SkMSec time) {
326 SkMSec queueDelay = SkEvent::EnqueueTime(this, time);
331 SkEvent::SignalQueueTimer(queueDelay);
335 bool SkEvent::Enqueue(SkEvent* evt) {
355 SkEvent* SkEvent::Dequeue() {
359 SkEvent* evt = globals.fEventQHead;
373 bool SkEvent::QHasEvents() {
384 SkMSec SkEvent::EnqueueTime(SkEvent* evt, SkMSec time) {
388 SkEvent* curr = globals.fDelayQHead;
389 SkEvent* prev = nullptr;
418 bool SkEvent::ProcessEvent() {
419 std::unique_ptr<SkEvent> evt(SkEvent::Dequeue());
426 again = SkEvent::QHasEvents();
431 void SkEvent::ServiceQueueTimer()
439 SkEvent* evt = globals.fDelayQHead;
455 SkEvent* next = evt->fNextEvent;
456 if (SkEvent::Enqueue(evt))
467 SkEvent::SignalNonEmptyQueue();
469 SkEvent::SignalQueueTimer(time);
472 int SkEvent::CountEventsOnQueue() {
477 const SkEvent* evt = globals.fEventQHead;
487 SkMSec SkEvent::GetMSecsSinceStartup() {
494 void SkEvent::Init() {}
496 void SkEvent::Term() {
499 SkEvent* evt = globals.fEventQHead;
501 SkEvent* next = evt->fNextEvent;
508 SkEvent* next = evt->fNextEvent;