From 7d938d559241d3dd5979aa0667f4127c01612a3b Mon Sep 17 00:00:00 2001 From: domrjchen Date: Tue, 21 Jan 2025 20:13:51 +0800 Subject: [PATCH] Update the baseline. --- src/gpu/RenderContext.cpp | 6 ++---- test/baseline/version.json | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/gpu/RenderContext.cpp b/src/gpu/RenderContext.cpp index 4c80e1f4..29131806 100644 --- a/src/gpu/RenderContext.cpp +++ b/src/gpu/RenderContext.cpp @@ -315,12 +315,10 @@ std::pair, bool> RenderContext::getClipRect(const Path& clip rect.round(); if (rect != Rect::MakeWH(renderTarget->width(), renderTarget->height())) { return {rect, true}; - } else { - return {Rect::MakeEmpty(), false}; } - } else { - return {rect, false}; + return {Rect::MakeEmpty(), false}; } + return {rect, false}; } return {{}, false}; } diff --git a/test/baseline/version.json b/test/baseline/version.json index e3231516..5e02f64d 100644 --- a/test/baseline/version.json +++ b/test/baseline/version.json @@ -21,7 +21,7 @@ "Path_addArc_reversed8": "4802e56", "Path_complex": "e031f25", "Picture": "002c391", - "PictureImage": "270695a", + "PictureImage": "3b0ec3b", "PictureImage_Path": "2212c4e", "PictureImage_Text": "b062b9a", "StrokeShape": "a0a5068", @@ -33,21 +33,21 @@ "drawColor": "b7aefeb", "drawImage": "6ab1e4f", "drawPaint": "b7aefeb", - "drawPaint_shadow": "4d5c3b0", + "drawPaint_shadow": "3b0ec3b", "drawShape": "e031f25", "filter_mode_linear": "d010fb8", "filter_mode_nearest": "d010fb8", "hardware_render_target_blend": "d010fb8", "inversePath_rect": "6fd4617", - "inversePath_text": "4d5c3b0", + "inversePath_text": "3b0ec3b", "merge_draw_call_rect": "d010fb8", "merge_draw_call_rrect": "d010fb8", "merge_draw_clear_op": "d010fb8", - "mipmap_linear": "836aed9", - "mipmap_linear_hardware": "836aed9", + "mipmap_linear": "3b0ec3b", + "mipmap_linear_hardware": "3b0ec3b", "mipmap_linear_texture_effect": "d010fb8", - "mipmap_nearest": "836aed9", - "mipmap_none": "836aed9", + "mipmap_nearest": "3b0ec3b", + "mipmap_none": "3b0ec3b", "path": "f37b222", "rasterized": "5a971dd", "rasterized_mipmap": "5a971dd", @@ -81,7 +81,7 @@ "OpacityShadowTest": "836aed9", "RuntimeEffect": "d93c573", "blur": "4d5c3b0", - "blur-large-pixel": "270695a", + "blur-large-pixel": "3b0ec3b", "dropShadow": "a30de8b", "greyColorMatrix": "a30de8b", "identityMatrix": "a30de8b", @@ -117,7 +117,7 @@ "filterClip": "43cd416", "filterTest": "44166b7", "filters": "270695a", - "getBounds": "836aed9", + "getBounds": "3b0ec3b", "getLayersUnderPoint": "b062b9a", "greyColorMatrix": "a1605b2", "identityMatrix": "a1605b2", @@ -209,6 +209,6 @@ "TextAlignSimulateVerticalTextLayout": "b062b9a", "TextAlignWidth0Height0": "b062b9a", "TextAlignWidth1Height10": "b062b9a", - "TruncateTextLineTest": "836aed9" + "TruncateTextLineTest": "3b0ec3b" } }