改瀑布图合成bug

This commit is contained in:
2026-07-31 20:11:39 +08:00
parent 5beb2a9b1e
commit 37ba8b450c
46 changed files with 778 additions and 366 deletions
+3 -3
View File
@@ -390,14 +390,14 @@ TEST(Memory_Data_Path_Stress, ExplicitNonMonotonicCurveClipsSegmentsAndBreaksMis
}
EXPECT_TRUE(saw_break);
}
TEST(Memory_Data_Path_Stress, FrameRasterContextPreservesBackendOrder) {
TEST(Memory_Data_Path_Stress, FrameRasterContextPreservesDrawOrder) {
QImage image(32, 32, QImage::Format_ARGB32_Premultiplied);
image.fill(Qt::transparent);
renderive::Frame_Raster_Context context(image);
context.qt().fillRect(QRect(0, 0, 32, 32), Qt::red);
context.canvas().fillRect(QRect(0, 0, 32, 32), Qt::red);
const std::array<QPointF, 2> line{{QPointF(2.0, 16.0), QPointF(29.0, 16.0)}};
context.stroke_polyline(line, QPen(Qt::blue, 3.0, Qt::SolidLine, Qt::FlatCap));
context.qt().fillRect(QRect(0, 0, 4, 4), Qt::green);
context.canvas().fillRect(QRect(0, 0, 4, 4), Qt::green);
context.finish();
EXPECT_EQ(image.pixelColor(8, 8), QColor(Qt::red));
EXPECT_GT(image.pixelColor(16, 16).blue(), 200);