Lines Matching full:picture
60 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_deleting_empty_picture() local
65 // Ensure that serializing an empty picture does not assert. Likewise only runs in debug mode.
69 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_serializing_empty_picture() local
71 picture->serialize(&stream); in test_serializing_empty_picture()
149 void check_save_state(skiatest::Reporter* reporter, SkPicture* picture, in check_save_state() argument
152 SaveCountingCanvas canvas(SkScalarCeilToInt(picture->cullRect().width()), in check_save_state()
153 SkScalarCeilToInt(picture->cullRect().height())); in check_save_state()
155 picture->playback(&canvas); in check_save_state()
191 // This tests that replaying a potentially unbalanced picture into a canvas
193 static void check_balance(skiatest::Reporter* reporter, SkPicture* picture) { in check_balance() argument
204 canvas.drawPicture(picture); in check_balance()
253 // End the recording of source to test the picture finalization in DEF_TEST()
271 // Create picture with 2 unbalanced saves in test_unbalanced_save_restores()
288 // Create picture with 2 unbalanced restores in test_unbalanced_save_restores()
333 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_peephole() local
349 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_peephole() local
364 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_bad_bitmap() local
367 canvas.drawPicture(picture); in test_bad_bitmap()
463 const SkBigPicture* picture = SkPicturePriv::AsSkBigPicture(p); in test_cull_rect_reset() local
464 REPORTER_ASSERT(reporter, picture); in test_cull_rect_reset()
466 SkRect finalCullRect = picture->cullRect(); in test_cull_rect_reset()
472 const SkBBoxHierarchy* pictureBBH = picture->bbh(); in test_cull_rect_reset()
530 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_clip_expansion() local
533 picture->playback(&testCanvas); in test_clip_expansion()
551 // picture should have a non-zero id after recording in test_gen_id()
563 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_typeface() local
565 picture->serialize(&stream); in test_typeface()
568 DEF_TEST(Picture, reporter) { in DEF_TEST() argument
611 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
654 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
656 // Now replay the picture back on another canvas in DEF_TEST()
661 picture->playback(&replayCanvas); in DEF_TEST()
695 // When the canvas clip covers the full picture, we don't need to call the BBH.
703 // Record a few ops so we don't hit a small- or empty- picture optimization. in DEF_TEST()
706 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
710 picture->playback(&big); in DEF_TEST()
713 picture->playback(&small); in DEF_TEST()
740 // The picture shares the immutable pixels but copies the mutable ones. in DEF_TEST()
744 // When the picture goes away, it's just our bitmaps holding the refs. in DEF_TEST()
778 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
780 picture->serialize(&wstream); in DEF_TEST()
793 // If we record bounded ops into a picture with a big cull and calculate the
794 // bounds of those ops, we should trim down the picture cull to the ops' bounds.