|
22 | 22 | #include "flutter/testing/display_list_testing.h"
|
23 | 23 | #include "flutter/testing/testing.h"
|
24 | 24 |
|
25 |
| -#include "impeller/typographer/backends/skia/text_frame_skia.h" |
26 | 25 | #include "third_party/skia/include/core/SkBBHFactory.h"
|
27 | 26 | #include "third_party/skia/include/core/SkColorFilter.h"
|
28 | 27 | #include "third_party/skia/include/core/SkPictureRecorder.h"
|
@@ -4332,30 +4331,5 @@ TEST_F(DisplayListTest, DrawDisplayListForwardsBackdropFlag) {
|
4332 | 4331 | EXPECT_TRUE(parent_dl->root_has_backdrop_filter());
|
4333 | 4332 | }
|
4334 | 4333 |
|
4335 |
| -TEST_F(DisplayListTest, TextFrameOpacityPeephole) { |
4336 |
| - // Single character can have opacity peephole applied. |
4337 |
| - { |
4338 |
| - std::string message = "A"; |
4339 |
| - sk_sp<SkTextBlob> blob = CreateTextBlob(message); |
4340 |
| - auto frame = impeller::MakeTextFrameFromTextBlobSkia(blob); |
4341 |
| - DisplayListBuilder builder; |
4342 |
| - builder.DrawTextFrame(frame, 0, 0, {}); |
4343 |
| - auto dl = builder.Build(); |
4344 |
| - EXPECT_TRUE(dl->can_apply_group_opacity()); |
4345 |
| - } |
4346 |
| - |
4347 |
| - // Multiple characters cannot have opacity peephole applied. |
4348 |
| - { |
4349 |
| - std::string message = "ABC"; |
4350 |
| - sk_sp<SkTextBlob> blob = CreateTextBlob(message); |
4351 |
| - |
4352 |
| - auto frame = impeller::MakeTextFrameFromTextBlobSkia(blob); |
4353 |
| - DisplayListBuilder builder; |
4354 |
| - builder.DrawTextFrame(frame, 0, 0, {}); |
4355 |
| - auto dl = builder.Build(); |
4356 |
| - EXPECT_FALSE(dl->can_apply_group_opacity()); |
4357 |
| - } |
4358 |
| -} |
4359 |
| - |
4360 | 4334 | } // namespace testing
|
4361 | 4335 | } // namespace flutter
|
0 commit comments