diff options
author | fmalita <fmalita@chromium.org> | 2016-05-12 10:53:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-12 10:53:49 -0700 |
commit | 1e2e33a74d707b918a0b1063047bbb25ee81ae67 (patch) | |
tree | 52d271e85cde45d60089cd80263c6fcd8939bdc3 /tests | |
parent | b11cf50b4a07be00b80816c67f738588357330bd (diff) |
Remove SkPicture::hasText()
No longer used in Chromium.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1978533002
Review-Url: https://codereview.chromium.org/1978533002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PictureTest.cpp | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 832a80f438..b7fa1d1d91 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -473,69 +473,6 @@ static void test_savelayer_extraction(skiatest::Reporter* reporter) { } } -static void test_has_text(skiatest::Reporter* reporter) { - SkPictureRecorder recorder; - - SkCanvas* canvas = recorder.beginRecording(100,100); - { - canvas->drawRect(SkRect::MakeWH(20, 20), SkPaint()); - } - sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); - REPORTER_ASSERT(reporter, !picture->hasText()); - - SkPoint point = SkPoint::Make(10, 10); - canvas = recorder.beginRecording(100,100); - { - canvas->drawText("Q", 1, point.fX, point.fY, SkPaint()); - } - picture = recorder.finishRecordingAsPicture(); - REPORTER_ASSERT(reporter, picture->hasText()); - - canvas = recorder.beginRecording(100,100); - { - canvas->drawPosText("Q", 1, &point, SkPaint()); - } - picture = recorder.finishRecordingAsPicture(); - REPORTER_ASSERT(reporter, picture->hasText()); - - canvas = recorder.beginRecording(100,100); - { - canvas->drawPosTextH("Q", 1, &point.fX, point.fY, SkPaint()); - } - picture = recorder.finishRecordingAsPicture(); - REPORTER_ASSERT(reporter, picture->hasText()); - - canvas = recorder.beginRecording(100,100); - { - SkPath path; - path.moveTo(0, 0); - path.lineTo(50, 50); - - canvas->drawTextOnPathHV("Q", 1, path, point.fX, point.fY, SkPaint()); - } - picture = recorder.finishRecordingAsPicture(); - REPORTER_ASSERT(reporter, picture->hasText()); - - canvas = recorder.beginRecording(100,100); - { - SkPath path; - path.moveTo(0, 0); - path.lineTo(50, 50); - - canvas->drawTextOnPath("Q", 1, path, nullptr, SkPaint()); - } - picture = recorder.finishRecordingAsPicture(); - REPORTER_ASSERT(reporter, picture->hasText()); - - // Nest the previous picture inside a new one. - canvas = recorder.beginRecording(100,100); - { - canvas->drawPicture(picture.get()); - } - picture = recorder.finishRecordingAsPicture(); - REPORTER_ASSERT(reporter, picture->hasText()); -} - static void set_canvas_to_save_count_4(SkCanvas* canvas) { canvas->restoreToCount(1); canvas->save(); @@ -1180,7 +1117,6 @@ static void test_typeface(skiatest::Reporter* reporter) { paint.setTypeface(SkTypeface::MakeFromName("Arial", SkTypeface::kItalic)); canvas->drawText("Q", 1, 0, 10, paint); sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); - REPORTER_ASSERT(reporter, picture->hasText()); SkDynamicMemoryWStream stream; picture->serialize(&stream); } @@ -1198,7 +1134,6 @@ DEF_TEST(Picture, reporter) { #if SK_SUPPORT_GPU test_gpu_veto(reporter); #endif - test_has_text(reporter); test_images_are_found_by_willPlayBackBitmaps(reporter); test_analysis(reporter); test_clip_bound_opt(reporter); |