[webkit-changes] [WebKit/WebKit] b307c2: [Skia] Implement conic gradients

Georges Basile Stavracas Neto noreply at github.com
Wed Feb 14 15:24:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b307c2ebeeb0c272a87b479fdf8cbf6c3bd027f6
      https://github.com/WebKit/WebKit/commit/b307c2ebeeb0c272a87b479fdf8cbf6c3bd027f6
  Author: Georges Basile Stavracas Neto <feaneron at igalia.com>
  Date:   2024-02-14 (Wed, 14 Feb 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/GradientSkia.cpp

  Log Message:
  -----------
  [Skia] Implement conic gradients
https://bugs.webkit.org/show_bug.cgi?id=269396

Reviewed by Don Olmstead.

Implement conic gradients using a Sweep gradient shader provided by
Skia. Skia renders it starting from the positive horizontal coordinate
space, so adjust that to what is expected for web by rotating it back
90 degress. The pivot point is the center of the conic.

* Source/WebCore/platform/graphics/skia/GradientSkia.cpp:
(WebCore::Gradient::shader):

Canonical link: https://commits.webkit.org/274667@main




More information about the webkit-changes mailing list