• Home
  • Raw
  • Download

Lines Matching full:picture

56     sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture());  in test_images_are_found_by_willPlayBackBitmaps()  local
58 REPORTER_ASSERT(reporter, picture->willPlayBackBitmaps()); in test_images_are_found_by_willPlayBackBitmaps()
69 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_analysis() local
70 REPORTER_ASSERT(reporter, !picture->willPlayBackBitmaps()); in test_analysis()
99 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_deleting_empty_picture() local
104 // Ensure that serializing an empty picture does not assert. Likewise only runs in debug mode.
108 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_serializing_empty_picture() local
110 picture->serialize(&stream); in test_serializing_empty_picture()
175 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_gpu_veto() local
180 !SkPictureGpuAnalyzer(picture).suitableForGpuRasterization(&reason)); in test_gpu_veto()
201 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
203 REPORTER_ASSERT(reporter, SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
223 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
225 REPORTER_ASSERT(reporter, !SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
247 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
249 REPORTER_ASSERT(reporter, SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
263 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
265 REPORTER_ASSERT(reporter, SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
277 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
279 REPORTER_ASSERT(reporter, !SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
293 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
295 REPORTER_ASSERT(reporter, SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
305 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
307 REPORTER_ASSERT(reporter, !SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
309 // Nest the previous picture inside a new one. in test_gpu_veto()
312 canvas->drawPicture(picture); in test_gpu_veto()
314 picture = recorder.finishRecordingAsPicture(); in test_gpu_veto()
315 REPORTER_ASSERT(reporter, !SkPictureGpuAnalyzer(picture).suitableForGpuRasterization()); in test_gpu_veto()
366 void check_save_state(skiatest::Reporter* reporter, SkPicture* picture, in check_save_state() argument
369 SaveCountingCanvas canvas(SkScalarCeilToInt(picture->cullRect().width()), in check_save_state()
370 SkScalarCeilToInt(picture->cullRect().height())); in check_save_state()
372 picture->playback(&canvas); in check_save_state()
408 // This tests that replaying a potentially unbalanced picture into a canvas
410 static void check_balance(skiatest::Reporter* reporter, SkPicture* picture) { in check_balance() argument
421 canvas.drawPicture(picture); in check_balance()
500 // End the recording of source to test the picture finalization in DEF_TEST()
518 // Create picture with 2 unbalanced saves in test_unbalanced_save_restores()
535 // Create picture with 2 unbalanced restores in test_unbalanced_save_restores()
580 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_peephole() local
596 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_peephole() local
611 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_bad_bitmap() local
614 canvas.drawPicture(picture); in test_bad_bitmap()
710 const SkBigPicture* picture = p->asSkBigPicture(); in test_cull_rect_reset() local
711 REPORTER_ASSERT(reporter, picture); in test_cull_rect_reset()
713 SkRect finalCullRect = picture->cullRect(); in test_cull_rect_reset()
719 const SkBBoxHierarchy* pictureBBH = picture->bbh(); in test_cull_rect_reset()
777 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_clip_expansion() local
780 picture->playback(&testCanvas); in test_clip_expansion()
840 // picture should have a non-zero id after recording in test_gen_id()
854 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_typeface() local
856 picture->serialize(&stream); in test_typeface()
859 DEF_TEST(Picture, reporter) { in DEF_TEST() argument
908 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
951 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
953 // Now replay the picture back on another canvas in DEF_TEST()
958 picture->playback(&replayCanvas); in DEF_TEST()
992 // When the canvas clip covers the full picture, we don't need to call the BBH.
1000 // Record a few ops so we don't hit a small- or empty- picture optimization. in DEF_TEST()
1003 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
1007 picture->playback(&big); in DEF_TEST()
1010 picture->playback(&small); in DEF_TEST()
1037 // The picture shares the immutable pixels but copies the mutable ones. in DEF_TEST()
1041 // When the picture goes away, it's just our bitmaps holding the refs. in DEF_TEST()
1075 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in DEF_TEST() local
1077 picture->serialize(&wstream); in DEF_TEST()
1140 // If we record bounded ops into a picture with a big cull and calculate the
1141 // bounds of those ops, we should trim down the picture cull to the ops' bounds.