Home | History | Annotate | Download | only in tests

Lines Matching refs:NotificationCounter

472 class NotificationCounter : public SkDeferredCanvas::NotificationClient {
474 NotificationCounter() {
506 NotificationCounter notificationCounter;
508 canvas->setNotificationClient(&notificationCounter);
521 REPORTER_ASSERT(reporter, 1 == notificationCounter.fStorageAllocatedChangedCount);
529 REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount);
530 REPORTER_ASSERT(reporter, 0 == notificationCounter.fPrepareForDrawCount);
532 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
533 REPORTER_ASSERT(reporter, 1 == notificationCounter.fPrepareForDrawCount);
541 REPORTER_ASSERT(reporter, 2 == notificationCounter.fStorageAllocatedChangedCount);
543 REPORTER_ASSERT(reporter, 2 == notificationCounter.fStorageAllocatedChangedCount);
544 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
549 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
551 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount);
554 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount);
561 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount);
581 REPORTER_ASSERT(reporter, 0 == notificationCounter.fSkippedPendingDrawCommandsCount);
589 NotificationCounter notificationCounter;
591 canvas->setNotificationClient(&notificationCounter);
593 REPORTER_ASSERT(reporter, 1 == notificationCounter.fSkippedPendingDrawCommandsCount);
594 REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount);
596 REPORTER_ASSERT(reporter, 1 == notificationCounter.fSkippedPendingDrawCommandsCount);
597 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
818 NotificationCounter notificationCounter;
820 canvas->setNotificationClient(&notificationCounter);
829 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 0);
832 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 1);