Lines Matching defs:reporter
143 skiatest::Reporter* reporter, int tolerance = 0) {
151 REPORTER_ASSERT(reporter, expectedColor == actualColor);
156 REPORTER_ASSERT(reporter, abs(expectedChannel - actualChannel) <= tolerance);
186 DEF_TEST(SkRemoteGlyphCache_TypefaceSerialization, reporter) {
195 REPORTER_ASSERT(reporter, client_tf);
196 REPORTER_ASSERT(reporter, static_cast<SkTypefaceProxy*>(client_tf.get())->remoteTypefaceID() ==
203 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_StrikeSerialization, reporter, ctxInfo) {
226 REPORTER_ASSERT(reporter,
232 compare_blobs(expected, actual, reporter);
233 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());
239 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_ReleaseTypeFace, reporter, ctxInfo) {
247 REPORTER_ASSERT(reporter, serverTf->unique());
257 REPORTER_ASSERT(reporter, !serverTf->unique());
262 REPORTER_ASSERT(reporter, serverTf->unique());
269 DEF_TEST(SkRemoteGlyphCache_StrikeLockingServer, reporter) {
286 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u);
287 REPORTER_ASSERT(reporter, discardableManager->lockedHandles().count() == 1u);
294 REPORTER_ASSERT(reporter, discardableManager->lockedHandles().count() == 0u);
297 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u);
298 REPORTER_ASSERT(reporter, discardableManager->lockedHandles().count() == 1u);
306 DEF_TEST(SkRemoteGlyphCache_StrikeDeletionServer, reporter) {
321 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u);
332 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u);
336 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 2u);
344 DEF_TEST(SkRemoteGlyphCache_StrikePinningClient, reporter) {
366 REPORTER_ASSERT(reporter,
372 REPORTER_ASSERT(reporter, !clientTf->unique());
378 REPORTER_ASSERT(reporter, clientTf->unique());
386 DEF_TEST(SkRemoteGlyphCache_ClientMemoryAccounting, reporter) {
408 REPORTER_ASSERT(reporter,
416 DEF_TEST(SkRemoteGlyphCache_PurgesServerEntries, reporter) {
431 REPORTER_ASSERT(reporter, server.remoteStrikeMapSizeForTesting() == 0u);
433 REPORTER_ASSERT(reporter, server.remoteStrikeMapSizeForTesting() == 1u);
453 REPORTER_ASSERT(reporter, server.remoteStrikeMapSizeForTesting() == 1u);
455 REPORTER_ASSERT(reporter, server.remoteStrikeMapSizeForTesting() == 1u);
462 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_DrawTextAsPath, reporter, ctxInfo) {
470 REPORTER_ASSERT(reporter,
489 REPORTER_ASSERT(reporter,
495 compare_blobs(expected, actual, reporter, 1);
496 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());
503 sk_sp<SkTypeface> targetTf, const SkTypeface* glyphTf, skiatest::Reporter* reporter) {
510 REPORTER_ASSERT(reporter,
528 REPORTER_ASSERT(reporter, glyphBounds.width() > SkStrikeCommon::kSkSideTooBigForAtlas);
538 reporter, ctxInfo) {
553 auto serverBlob = make_blob_causing_fallback(serverTf, serverTf.get(), reporter);
565 REPORTER_ASSERT(reporter,
568 auto clientBlob = make_blob_causing_fallback(clientTf, serverTf.get(), reporter);
572 compare_blobs(expected, actual, reporter);
573 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());
583 reporter, ctxInfo) {
597 auto makeBlob = [&reporter](sk_sp<SkTypeface> typeface) {
604 REPORTER_ASSERT(reporter, !SkDraw::ShouldDrawTextAsPaths(font, SkPaint(), SkMatrix::I()));
636 REPORTER_ASSERT(reporter,
646 compare_blobs(expected, actual, reporter, 36);
647 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());
654 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_DrawTextXY, reporter, ctxInfo) {
678 REPORTER_ASSERT(reporter,
684 compare_blobs(expected, actual, reporter);
685 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());
691 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_DrawTextAsDFT, reporter, ctxInfo) {
705 REPORTER_ASSERT(reporter, control.drawingType(font, paint, matrix) == GrSDFTControl::kSDFT);
724 REPORTER_ASSERT(reporter,
730 compare_blobs(expected, actual, reporter);
731 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());
737 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_CacheMissReporting, reporter, ctxInfo) {
745 REPORTER_ASSERT(reporter, clientTf);
753 REPORTER_ASSERT(reporter,
755 REPORTER_ASSERT(reporter,
760 REPORTER_ASSERT(reporter, discardableManager->cacheMissCount(SkStrikeClient::kGlyphImage) == 0);
761 REPORTER_ASSERT(reporter, discardableManager->cacheMissCount(SkStrikeClient::kGlyphPath) == 0);
792 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_TypefaceWithNoPaths, reporter, ctxInfo) {
814 REPORTER_ASSERT(reporter,
819 REPORTER_ASSERT(reporter, clientBlob);
822 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());