Skip to content

Commit b8c4993

Browse files
committed
[Skia][clang] Unreviewed: fix build
https://bugs.webkit.org/show_bug.cgi?id=299593 * Source/WebCore/platform/graphics/skia/SkiaReplayCanvas.cpp: (WebCore::SkiaReplayCanvas::invokeDrawFunctionWithPaint): (WebCore::SkiaReplayCanvas::invokeDrawFunctionWithShader): Canonical link: https://commits.webkit.org/300565@main
1 parent dfc9d27 commit b8c4993

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/WebCore/platform/graphics/skia/SkiaReplayCanvas.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ void SkiaReplayCanvas::invokeDrawFunctionWithPaint(const SkPaint& paint, Functio
8989
auto* shader = paint.getShader();
9090

9191
SkMatrix localMatrix;
92-
SkTileMode mode[2];
93-
auto* image = shader ? shader->isAImage(&localMatrix, mode) : nullptr;
92+
std::array<SkTileMode, 2> mode;
93+
auto* image = shader ? shader->isAImage(&localMatrix, mode.data()) : nullptr;
9494
if (auto wrappedImage = waitForRenderingCompletionAndRewrapImageIfNeeded(image)) {
9595
// FIXME: There is no way to get the SkSamplingOptions that were used to create the original shader.
9696
// Add Skia API? (SkImageShader stores SkSamplingOptions but is private and not installed).
@@ -106,8 +106,8 @@ void SkiaReplayCanvas::invokeDrawFunctionWithPaint(const SkPaint& paint, Functio
106106
void SkiaReplayCanvas::invokeDrawFunctionWithShader(const SkShader* shader, Function<void(const SkShader*)>&& drawFunction)
107107
{
108108
SkMatrix localMatrix;
109-
SkTileMode mode[2];
110-
auto* image = shader ? shader->isAImage(&localMatrix, mode) : nullptr;
109+
std::array<SkTileMode, 2> mode;
110+
auto* image = shader ? shader->isAImage(&localMatrix, mode.data()) : nullptr;
111111
if (auto wrappedImage = waitForRenderingCompletionAndRewrapImageIfNeeded(image)) {
112112
// FIXME: There is no way to get the SkSamplingOptions that were used to create the original shader.
113113
// Add Skia API? (SkImageShader stores SkSamplingOptions but is private and not installed).

0 commit comments

Comments
 (0)