Skip to content

Commit

Permalink
Unreviewed. [Skia] Fix the build after 278445@main
Browse files Browse the repository at this point in the history
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaSurfaceBackend.cpp:
(WebCore::ImageBufferSkiaSurfaceBackend::canMapBackingStore const):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaSurfaceBackend.h:

Canonical link: https://commits.webkit.org/278446@main
  • Loading branch information
carlosgcampos committed May 7, 2024
1 parent 8d2e51d commit b18dd9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ unsigned ImageBufferSkiaSurfaceBackend::bytesPerRow() const
return m_surface->imageInfo().minRowBytes64();
}

bool ImageBufferSkiaSurfaceBackend::canMapBackingStore() const
{
return true;
}

} // namespace WebCore

#endif // USE(SKIA)
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ImageBufferSkiaSurfaceBackend : public ImageBufferSkiaBackend {

GraphicsContext& context() final { return m_context; }
unsigned bytesPerRow() const final;
bool canMapBackingStore() const final;

sk_sp<SkSurface> m_surface;
GraphicsContextSkia m_context;
Expand Down

0 comments on commit b18dd9e

Please sign in to comment.