Enable FPDFProgressiveRenderEmbedderTest.RenderHighlightWithColorScheme for SkiaPaths.

For FPDFProgressiveRenderEmbedderTest.RenderHighlightWithColorScheme,
due to the reasons stated in
https://pdfium-review.googlesource.com/76030, Skia's and SkiaPaths' text
rendering results may have small but acceptable discrepancies compared
to AGG's. Also due to Skia's hairline rendering method for drawing
rectangles, there are also acceptable discrepancies along the edges of
the rectangle when rendering with Skia/SkiaPaths.

This CL updates the expected results for Skia and SkiaPaths for this
test. However due to the current Skia result is not rendering the black
highlight area correctly, this test is only enabled for SkiaPaths.

Bug: pdfium: 1500
Change-Id: Ibf8371108e13d289731f91c4e630373ba748c896
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/76693
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Hui Yingst <nigi@chromium.org>
diff --git a/core/fpdfapi/render/fpdf_progressive_render_embeddertest.cpp b/core/fpdfapi/render/fpdf_progressive_render_embeddertest.cpp
index 1e77928..87db1ea 100644
--- a/core/fpdfapi/render/fpdf_progressive_render_embeddertest.cpp
+++ b/core/fpdfapi/render/fpdf_progressive_render_embeddertest.cpp
@@ -385,8 +385,9 @@
                                  kRectanglesChecksum);
 }
 
-// TODO(crbug.com/pdfium/11): Fix this test and enable.
-#if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
+// TODO(crbug.com/pdfium/1500): When Skia is enabled, the hightlighted area is
+// not rendered. Fix this issue and enable the test.
+#if defined(_SKIA_SUPPORT_)
 #define MAYBE_RenderHighlightWithColorScheme \
   DISABLED_RenderHighlightWithColorScheme
 #else
@@ -399,19 +400,25 @@
 // Note: The fill color rendered for highlight is different from the normal
 // path since highlights have Multiply blend mode, while the other path has
 // Normal blend mode.
+#if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
+  static constexpr char kContentWithHighlightFillChecksum[] =
+      "fa25846c61d0253e86e8512d3be06ebb";
+#else
 #if defined(OS_APPLE)
-  static constexpr char kMD5ContentWithHighlightFill[] =
+  static constexpr char kContentWithHighlightFillChecksum[] =
       "a820afec9b99d3d3f2e9e9382bbad7c1";
 #else
-  static constexpr char kMD5ContentWithHighlightFill[] =
+  static constexpr char kContentWithHighlightFillChecksum[] =
       "a08a0639f89446f66f3689ee8e08b9fe";
-#endif
+#endif  // defined(OS_APPLE)
+#endif  // defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_)
 
   ASSERT_TRUE(OpenDocument("annotation_highlight_square_with_ap.pdf"));
 
   FPDF_COLORSCHEME color_scheme{kRed, kGreen, kWhite, kWhite};
   VerifyRenderingWithColorScheme(/*page_num=*/0, FPDF_ANNOT, &color_scheme,
-                                 kBlue, 612, 792, kMD5ContentWithHighlightFill);
+                                 kBlue, 612, 792,
+                                 kContentWithHighlightFillChecksum);
 }
 
 // TODO(crbug.com/pdfium/11): Fix this test and enable.