Skip to content

Commit ceafbaa

Browse files
author
jonahwilliams
committed
++
1 parent 4d44543 commit ceafbaa

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

engine/src/flutter/impeller/display_list/dl_golden_unittests.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ TEST_P(DlGoldenTest, BaselineHE) {
413413
int32_t left_max_y = CalculateMaxY(left.get());
414414
int32_t right_max_y = CalculateMaxY(right.get());
415415
int32_t y_diff = std::abs(left_max_y - right_max_y);
416-
FML_LOG(ERROR) << "y diff: " << y_diff; // TEsting.
416+
EXPECT_TRUE(y_diff <= 2) << "y diff: " << y_diff;
417417
}
418418

419419
TEST_P(DlGoldenTest, MaintainsSpace) {

engine/src/flutter/impeller/golden_tests/vulkan_screenshotter.mm

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,6 @@ CGContextPtr context(
7676
CGImagePtr image(CGBitmapContextCreateImage(context.get()), &CGImageRelease);
7777
FML_CHECK(image);
7878

79-
// TODO(142641): Perform the flip at the blit stage to avoid this slow copy.
80-
if (texture->GetYCoordScale() == -1) {
81-
CGContextPtr flipped_context(
82-
CGBitmapContextCreate(
83-
nullptr, texture->GetSize().width, texture->GetSize().height,
84-
/*bitsPerComponent=*/8,
85-
/*bytesPerRow=*/0, color_space.get(), bitmap_info),
86-
&CGContextRelease);
87-
CGContextTranslateCTM(flipped_context.get(), 0, texture->GetSize().height);
88-
CGContextScaleCTM(flipped_context.get(), 1.0, -1.0);
89-
CGContextDrawImage(
90-
flipped_context.get(),
91-
CGRectMake(0, 0, texture->GetSize().width, texture->GetSize().height),
92-
image.get());
93-
CGImagePtr flipped_image(CGBitmapContextCreateImage(flipped_context.get()),
94-
&CGImageRelease);
95-
image.swap(flipped_image);
96-
}
97-
9879
return std::make_unique<MetalScreenshot>(image.release());
9980
}
10081
} // namespace

0 commit comments

Comments
 (0)