• Home
  • Raw
  • Download

Lines Matching refs:evt

313 bool SkEvent::Post(SkEvent* evt, SkEventSinkID sinkID, SkMSec delay)  in Post()  argument
316 return SkEvent::PostTime(evt, sinkID, SkTime::GetMSecs() + delay); in Post()
320 evt->fTargetID = sinkID; in Post()
325 str.append(evt->getType()); in Post()
336 bool wasEmpty = SkEvent::Enqueue(evt); in Post()
349 bool SkEvent::PostTime(SkEvent* evt, SkEventSinkID sinkID, SkMSec time) in PostTime() argument
356 evt->fTargetID = sinkID; in PostTime()
361 str.append(evt->getType()); in PostTime()
372 SkMSec queueDelay = SkEvent::EnqueueTime(evt, time); in PostTime()
381 bool SkEvent::Enqueue(SkEvent* evt) in Enqueue() argument
386 SkASSERT(evt); in Enqueue()
391 globals.fEventQTail->fNextEvent = evt; in Enqueue()
392 globals.fEventQTail = evt; in Enqueue()
394 globals.fEventQHead = evt; in Enqueue()
395 evt->fNextEvent = NULL; in Enqueue()
408 SkEvent* evt = globals.fEventQHead; in Dequeue() local
409 if (evt) in Dequeue()
414 *sinkID = evt->fTargetID; in Dequeue()
416 globals.fEventQHead = evt->fNextEvent; in Dequeue()
424 return evt; in Dequeue()
439 SkMSec SkEvent::EnqueueTime(SkEvent* evt, SkMSec time) in EnqueueTime() argument
442 SkDebugf("enqueue-delay %s %d (%d)", evt->getType(), time, gDelayDepth); in EnqueueTime()
443 const char* idStr = evt->findString("id"); in EnqueueTime()
464 evt->fTime = time; in EnqueueTime()
465 evt->fNextEvent = curr; in EnqueueTime()
467 globals.fDelayQHead = evt; in EnqueueTime()
469 prev->fNextEvent = evt; in EnqueueTime()
484 SkEvent* evt = SkEvent::Dequeue(&sinkID); in ProcessEvent() local
485 SkAutoTDelete<SkEvent> autoDelete(evt); in ProcessEvent()
488 EVENT_LOGN("ProcessEvent", (int32_t)evt); in ProcessEvent()
490 if (evt) in ProcessEvent()
492 (void)SkEventSink::DoEvent(*evt, sinkID); in ProcessEvent()
506 SkEvent* evt = globals.fDelayQHead; in ServiceQueueTimer() local
508 while (evt) in ServiceQueueTimer()
510 if (SkMSec_LT(now, evt->fTime)) in ServiceQueueTimer()
515 SkDebugf("dequeue-delay %s (%d)", evt->getType(), gDelayDepth); in ServiceQueueTimer()
516 const char* idStr = evt->findString("id"); in ServiceQueueTimer()
522 SkEvent* next = evt->fNextEvent; in ServiceQueueTimer()
523 if (SkEvent::Enqueue(evt)) in ServiceQueueTimer()
525 evt = next; in ServiceQueueTimer()
527 globals.fDelayQHead = evt; in ServiceQueueTimer()
529 SkMSec time = evt ? evt->fTime - now : 0; in ServiceQueueTimer()
544 const SkEvent* evt = globals.fEventQHead; in CountEventsOnQueue() local
545 while (evt) { in CountEventsOnQueue()
547 evt = evt->fNextEvent; in CountEventsOnQueue()
564 SkEvent* evt = globals.fEventQHead; in Term() local
565 while (evt) in Term()
567 SkEvent* next = evt->fNextEvent; in Term()
568 delete evt; in Term()
569 evt = next; in Term()
572 evt = globals.fDelayQHead; in Term()
573 while (evt) in Term()
575 SkEvent* next = evt->fNextEvent; in Term()
576 delete evt; in Term()
577 evt = next; in Term()