[webkit-changes] [WebKit/WebKit] de802f: [WPE] Import the initial painting implementation u...

Carlos Garcia Campos noreply at github.com
Mon Feb 12 05:00:00 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: de802f3b8dfb14d2f8ca791924761285726ab392
      https://github.com/WebKit/WebKit/commit/de802f3b8dfb14d2f8ca791924761285726ab392
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M Source/CMakeLists.txt
    M Source/WTF/wtf/PlatformUse.h
    M Source/WebCore/PlatformWPE.cmake
    M Source/WebCore/html/CanvasBase.cpp
    M Source/WebCore/platform/DragImage.h
    M Source/WebCore/platform/ImageDecoders.cmake
    M Source/WebCore/platform/SharedBuffer.cpp
    M Source/WebCore/platform/SharedBuffer.h
    A Source/WebCore/platform/Skia.cmake
    M Source/WebCore/platform/SourcesGStreamer.txt
    A Source/WebCore/platform/SourcesSkia.txt
    M Source/WebCore/platform/TextureMapper.cmake
    M Source/WebCore/platform/graphics/FloatRect.h
    M Source/WebCore/platform/graphics/Font.cpp
    M Source/WebCore/platform/graphics/FontCache.cpp
    M Source/WebCore/platform/graphics/FontCache.h
    M Source/WebCore/platform/graphics/FontCustomPlatformData.h
    M Source/WebCore/platform/graphics/FontPlatformData.cpp
    M Source/WebCore/platform/graphics/FontPlatformData.h
    M Source/WebCore/platform/graphics/Gradient.h
    M Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.h
    M Source/WebCore/platform/graphics/ImageBuffer.cpp
    M Source/WebCore/platform/graphics/ImageBufferPlatformBackend.h
    M Source/WebCore/platform/graphics/Pattern.h
    M Source/WebCore/platform/graphics/PlatformDisplay.h
    M Source/WebCore/platform/graphics/PlatformGraphicsContext.h
    M Source/WebCore/platform/graphics/PlatformImage.h
    M Source/WebCore/platform/graphics/PlatformPath.h
    M Source/WebCore/platform/graphics/PlatformPathImpl.h
    M Source/WebCore/platform/graphics/ShareableBitmap.cpp
    M Source/WebCore/platform/graphics/ShareableBitmap.h
    M Source/WebCore/platform/graphics/WidthCache.h
    M Source/WebCore/platform/graphics/gstreamer/ImageGStreamerCairo.cpp
    A Source/WebCore/platform/graphics/gstreamer/ImageGStreamerSkia.cpp
    M Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp
    M Source/WebCore/platform/graphics/harfbuzz/HbUniquePtr.h
    M Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp
    M Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.h
    M Source/WebCore/platform/graphics/nicosia/NicosiaImageBufferPipe.cpp
    M Source/WebCore/platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp
    A Source/WebCore/platform/graphics/skia/ComplexTextControllerSkia.cpp
    A Source/WebCore/platform/graphics/skia/DrawGlyphsRecorderSkia.cpp
    A Source/WebCore/platform/graphics/skia/FloatRectSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontCascadeSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontDescriptionSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontPlatformDataSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontVariationsSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontVariationsSkia.h
    A Source/WebCore/platform/graphics/skia/GlyphPageSkia.cpp
    A Source/WebCore/platform/graphics/skia/GradientSkia.cpp
    A Source/WebCore/platform/graphics/skia/GraphicsContextGLSkia.cpp
    A Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
    A Source/WebCore/platform/graphics/skia/GraphicsContextSkia.h
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.h
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaBackend.cpp
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaBackend.h
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaSurfaceBackend.cpp
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaSurfaceBackend.h
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.cpp
    A Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.h
    A Source/WebCore/platform/graphics/skia/ImageBufferUtilitiesSkia.cpp
    A Source/WebCore/platform/graphics/skia/ImageBufferUtilitiesSkia.h
    A Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp
    A Source/WebCore/platform/graphics/skia/PathSkia.cpp
    A Source/WebCore/platform/graphics/skia/PathSkia.h
    A Source/WebCore/platform/graphics/skia/PatternSkia.cpp
    A Source/WebCore/platform/graphics/skia/PlatformDisplaySkia.cpp
    A Source/WebCore/platform/graphics/skia/ShareableBitmapSkia.cpp
    A Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFont.cpp
    A Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFont.h
    A Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFontCache.cpp
    A Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFontCache.h
    A Source/WebCore/platform/graphics/skia/TransformationMatrixSkia.cpp
    M Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp
    M Source/WebCore/platform/graphics/texmap/BitmapTexture.h
    M Source/WebCore/platform/graphics/texmap/TextureMapper.cpp
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
    A Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerCairo.cpp
    A Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerSkia.cpp
    M Source/WebCore/platform/graphics/transforms/AffineTransform.h
    M Source/WebCore/platform/graphics/transforms/TransformationMatrix.h
    A Source/WebCore/platform/image-decoders/skia/ImageBackingStoreSkia.cpp
    A Source/WebCore/platform/skia/SharedBufferSkia.cpp
    M Source/WebKit/PlatformWPE.cmake
    M Source/WebKit/Shared/API/c/cairo/WKImageCairo.cpp
    A Source/WebKit/Shared/skia/WebCoreArgumentCodersSkia.cpp
    M Source/WebKit/SourcesWPE.txt
    M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
    M Source/WebKit/UIProcess/API/wpe/WPEWebView.cpp
    M Source/WebKit/UIProcess/Notifications/glib/NotificationService.cpp
    M Source/WebKit/WebProcess/GPU/graphics/ImageBufferShareableBitmapBackend.h
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.h
    M Source/WebKit/WebProcess/glib/WebProcessGLib.cpp
    M Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp
    M Source/cmake/OptionsWPE.cmake
    M Tools/ImageDiff/Cairo.cmake
    M Tools/ImageDiff/PlatformImage.h
    M Tools/Scripts/webkitpy/style/checkers/cpp.py
    M Tools/TestWebKitAPI/PlatformWPE.cmake
    M Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp
    M Tools/TestWebKitAPI/glib/PlatformWPE.cmake
    M Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h
    M Tools/WebKitTestRunner/PlatformWPE.cmake
    M Tools/WebKitTestRunner/PlatformWebView.h
    M Tools/WebKitTestRunner/cairo/TestInvocationCairo.cpp
    M Tools/WebKitTestRunner/libwpe/PlatformWebViewClient.h
    M Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.cpp
    M Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.h
    A Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp
    M Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp
    M Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.h
    M Tools/WebKitTestRunner/wpe/TestControllerWPE.cpp
    M Tools/wpe/backends/CMakeLists.txt
    M Tools/wpe/backends/HeadlessViewBackend.h
    M Tools/wpe/backends/fdo/HeadlessViewBackendFdo.cpp

  Log Message:
  -----------
  [WPE] Import the initial painting implementation using Skia
https://bugs.webkit.org/show_bug.cgi?id=268975

Reviewed by Don Olmstead.

Add initial Skia implemention for the WPE port.

Co-authored-by: Adrian Perez de Castro <aperez at igalia.com>
Co-authored-by: Alejandro G. Castro <alex at igalia.com>
Co-authored-by: Nikolas Zimmermann <nzimmermann at igalia.com>

* Source/CMakeLists.txt:
* Source/WTF/wtf/PlatformUse.h:
* Source/WebCore/PlatformWPE.cmake:
* Source/WebCore/html/CanvasBase.cpp:
(WebCore::CanvasBase::shouldAccelerate const):
* Source/WebCore/platform/DragImage.h:
* Source/WebCore/platform/ImageDecoders.cmake:
* Source/WebCore/platform/SharedBuffer.cpp:
(WebCore::DataSegment::create):
(WebCore::DataSegment::data const):
(WebCore::DataSegment::size const):
* Source/WebCore/platform/SharedBuffer.h:
(WebCore::DataSegment::DataSegment):
* Source/WebCore/platform/Skia.cmake: Added.
* Source/WebCore/platform/SourcesGStreamer.txt:
* Source/WebCore/platform/SourcesSkia.txt: Added.
* Source/WebCore/platform/TextureMapper.cmake:
* Source/WebCore/platform/graphics/FloatRect.h:
* Source/WebCore/platform/graphics/Font.cpp:
* Source/WebCore/platform/graphics/FontCache.cpp:
* Source/WebCore/platform/graphics/FontCache.h:
(WebCore::FontCache::fontManager const):
(WebCore::FontCache::harfBuzzFontCache):
* Source/WebCore/platform/graphics/FontCustomPlatformData.h:
* Source/WebCore/platform/graphics/FontPlatformData.cpp:
* Source/WebCore/platform/graphics/FontPlatformData.h:
(WebCore::FontPlatformData::skFont const):
(WebCore::FontPlatformData::skiaHarfBuzzFont const):
(WebCore::FontPlatformData::features const):
* Source/WebCore/platform/graphics/Gradient.h:
* Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.h:
* Source/WebCore/platform/graphics/ImageBuffer.cpp:
(WebCore::ImageBuffer::create):
* Source/WebCore/platform/graphics/ImageBufferPlatformBackend.h:
* Source/WebCore/platform/graphics/Pattern.h:
* Source/WebCore/platform/graphics/PlatformDisplay.h:
(WebCore::PlatformDisplay::skiaGrContext):
* Source/WebCore/platform/graphics/PlatformGraphicsContext.h:
* Source/WebCore/platform/graphics/PlatformImage.h:
* Source/WebCore/platform/graphics/PlatformPath.h:
* Source/WebCore/platform/graphics/PlatformPathImpl.h:
* Source/WebCore/platform/graphics/WidthCache.h:
(WebCore::operator==):
* Source/WebCore/platform/graphics/gstreamer/ImageGStreamerCairo.cpp:
* Source/WebCore/platform/graphics/gstreamer/ImageGStreamerSkia.cpp: Added.
(WebCore::ImageGStreamer::ImageGStreamer):
(WebCore::ImageGStreamer::~ImageGStreamer):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp:
(WebCore::VideoFrame::fromNativeImage):
* Source/WebCore/platform/graphics/harfbuzz/HbUniquePtr.h:
(WebCore::HbPtrDeleter<hb_blob_t>::operator() const):
* Source/WebCore/platform/graphics/nicosia/NicosiaBackingStore.cpp:
(Nicosia::BackingStore::updateTile):
* Source/WebCore/platform/graphics/nicosia/NicosiaBackingStore.h:
* Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:
(Nicosia::UnacceleratedBuffer::create):
(Nicosia::UnacceleratedBuffer::UnacceleratedBuffer):
(Nicosia::UnacceleratedBuffer::~UnacceleratedBuffer):
(Nicosia::UnacceleratedBuffer::beginPainting):
(Nicosia::UnacceleratedBuffer::completePainting):
(Nicosia::UnacceleratedBuffer::waitUntilPaintingComplete):
(Nicosia::AcceleratedBuffer::create):
(Nicosia::AcceleratedBuffer::AcceleratedBuffer):
(Nicosia::AcceleratedBuffer::~AcceleratedBuffer):
(Nicosia::AcceleratedBuffer::size const):
(Nicosia::AcceleratedBuffer::beginPainting):
(Nicosia::AcceleratedBuffer::completePainting):
(Nicosia::AcceleratedBuffer::waitUntilPaintingComplete):
(Nicosia::Buffer::Buffer):
(Nicosia::Buffer::create): Deleted.
(Nicosia::Buffer::~Buffer): Deleted.
(Nicosia::Buffer::beginPainting): Deleted.
(Nicosia::Buffer::completePainting): Deleted.
(Nicosia::Buffer::waitUntilPaintingComplete): Deleted.
* Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.h:
(Nicosia::Buffer::platformWaitUntilPaintingComplete):
(Nicosia::Buffer::supportsAlpha const):
(Nicosia::Buffer::surface const):
(Nicosia::Buffer::size const): Deleted.
(Nicosia::Buffer::stride const): Deleted.
(Nicosia::Buffer::data const): Deleted.
* Source/WebCore/platform/graphics/nicosia/NicosiaImageBufferPipe.cpp:
* Source/WebCore/platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp:
(Nicosia::PaintingContextCairo::ForPainting::ForPainting):
* Source/WebCore/platform/graphics/skia/ComplexTextControllerSkia.cpp: Added.
(WebCore::harfBuzzPositionToFloat):
(WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
(WebCore::characterScript):
(WebCore::findNextRun):
(WebCore::ComplexTextController::collectComplexTextRunsForCharacters):
* Source/WebCore/platform/graphics/skia/DrawGlyphsRecorderSkia.cpp: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
(WebCore::DrawGlyphsRecorder::DrawGlyphsRecorder):
(WebCore::DrawGlyphsRecorder::drawGlyphs):
* Source/WebCore/platform/graphics/skia/FloatRectSkia.cpp: Copied from Source/WebCore/platform/graphics/PlatformImage.h.
(WebCore::FloatRect::FloatRect):
(WebCore::FloatRect::operator SkRect const):
* Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp: Added.
(WebCore::FontCache::platformInit):
(WebCore::FontCache::systemFallbackForCharacterCluster):
(WebCore::FontCache::systemFontFamilies):
(WebCore::FontCache::isSystemFontForbiddenForEditing):
(WebCore::FontCache::lastResortFallbackFont):
(WebCore::FontCache::getFontSelectionCapabilitiesInFamily):
(WebCore::getFamilyNameStringFromFamily):
(WebCore::FontCache::computeFeatures):
(WebCore::FontCache::createFontPlatformData):
(WebCore::FontCache::platformAlternateFamilyName):
(WebCore::FontCache::platformInvalidate):
(WebCore::FontCache::platformPurgeInactiveFontData):
* Source/WebCore/platform/graphics/skia/FontCascadeSkia.cpp: Added.
(WebCore::FontCascade::drawGlyphs):
(WebCore::FontCascade::canReturnFallbackFontsForComplexText):
(WebCore::FontCascade::canExpandAroundIdeographsInComplexText):
(WebCore::FontCascade::resolveEmojiPolicy):
(WebCore::FontCascade::fontForCombiningCharacterSequence const):
* Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp: Added.
(WebCore::FontCustomPlatformData::FontCustomPlatformData):
(WebCore::FontCustomPlatformData::fontPlatformData):
(WebCore::createFontCustomPlatformData):
(WebCore::FontCustomPlatformData::supportsFormat):
(WebCore::FontCustomPlatformData::supportsTechnology):
* Source/WebCore/platform/graphics/skia/FontDescriptionSkia.cpp: Copied from Source/WebCore/platform/graphics/PlatformImage.h.
(WebCore::FontCascadeDescription::effectiveFamilyCount const):
(WebCore::FontCascadeDescription::effectiveFamilyAt const):
* Source/WebCore/platform/graphics/skia/FontPlatformDataSkia.cpp: Added.
(WebCore::FontPlatformData::FontPlatformData):
(WebCore::FontPlatformData::isFixedPitch const):
(WebCore::FontPlatformData::hash const):
(WebCore::FontPlatformData::platformIsEqual const):
(WebCore::FontPlatformData::description const):
(WebCore::FontPlatformData::familyName const):
(WebCore::FontPlatformData::openTypeTable const):
(WebCore::FontPlatformData::create):
(WebCore::FontPlatformData::attributes const):
(WebCore::FontPlatformData::hbFont const):
(WebCore::FontPlatformData::createOpenTypeMathHarfBuzzFont const):
(WebCore::FontPlatformData::updateSize):
(WebCore::FontPlatformData::variationAxes const):
* Source/WebCore/platform/graphics/skia/FontSkia.cpp: Added.
(WebCore::Font::platformPathForGlyph const):
(WebCore::Font::platformBoundsForGlyph const):
(WebCore::Font::platformWidthForGlyph const):
(WebCore::Font::platformInit):
(WebCore::Font::platformCharWidthInit):
(WebCore::Font::platformCreateScaledFont const):
(WebCore::Font::determinePitch):
(WebCore::Font::variantCapsSupportedForSynthesis const):
(WebCore::Font::platformSupportsCodePoint const):
* Source/WebCore/platform/graphics/skia/FontVariationsSkia.cpp: Added.
(WebCore::defaultFontVariationValues):
* Source/WebCore/platform/graphics/skia/FontVariationsSkia.h: Added.
(WebCore::FontVariationDefaults::clamp const):
* Source/WebCore/platform/graphics/skia/GlyphPageSkia.cpp: Added.
(WebCore::GlyphPage::fill):
* Source/WebCore/platform/graphics/skia/GradientSkia.cpp: Added.
(WebCore::Gradient::stopsChanged):
(WebCore::webCoreDoubleToSkScalar):
(WebCore::toSkiaInterpolation):
(WebCore::Gradient::getGradient):
(WebCore::Gradient::fill):
* Source/WebCore/platform/graphics/skia/GraphicsContextGLSkia.cpp: Added.
(WebCore::GraphicsContextGLImageExtractor::extractImage):
(WebCore::GraphicsContextGL::createNativeImageFromPixelBuffer):
* Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp: Added.
(WebCore::GraphicsContextSkia::GraphicsContextSkia):
(WebCore::GraphicsContextSkia::hasPlatformContext const):
(WebCore::GraphicsContextSkia::getCTM const):
(WebCore::GraphicsContextSkia::platformContext const):
(WebCore::GraphicsContextSkia::save):
(WebCore::GraphicsContextSkia::restore):
(WebCore::GraphicsContextSkia::drawRect):
(WebCore::toSkiaBlendMode):
(WebCore::toSkSamplingOptions):
(WebCore::GraphicsContextSkia::drawNativeImageInternal):
(WebCore::GraphicsContextSkia::drawLine):
(WebCore::GraphicsContextSkia::drawEllipse):
(WebCore::toSkiaFillType):
(WebCore::GraphicsContextSkia::fillPath):
(WebCore::GraphicsContextSkia::strokePath):
(WebCore::GraphicsContextSkia::createFillPaint const):
(WebCore::GraphicsContextSkia::createStrokePaint const):
(WebCore::GraphicsContextSkia::fillRect):
(WebCore::GraphicsContextSkia::resetClip):
(WebCore::GraphicsContextSkia::clip):
(WebCore::GraphicsContextSkia::clipPath):
(WebCore::GraphicsContextSkia::clipBounds const):
(WebCore::GraphicsContextSkia::clipToImageBuffer):
(WebCore::GraphicsContextSkia::drawFocusRing):
(WebCore::GraphicsContextSkia::drawLinesForText):
(WebCore::GraphicsContextSkia::drawDotsForDocumentMarker):
(WebCore::GraphicsContextSkia::translate):
(WebCore::GraphicsContextSkia::didUpdateState):
(WebCore::GraphicsContextSkia::concatCTM):
(WebCore::GraphicsContextSkia::setCTM):
(WebCore::GraphicsContextSkia::beginTransparencyLayer):
(WebCore::GraphicsContextSkia::endTransparencyLayer):
(WebCore::GraphicsContextSkia::clearRect):
(WebCore::GraphicsContextSkia::strokeRect):
(WebCore::GraphicsContextSkia::setLineCap):
(WebCore::GraphicsContextSkia::setLineDash):
(WebCore::GraphicsContextSkia::setLineJoin):
(WebCore::GraphicsContextSkia::setMiterLimit):
(WebCore::GraphicsContextSkia::clipOut):
(WebCore::GraphicsContextSkia::rotate):
(WebCore::GraphicsContextSkia::scale):
(WebCore::GraphicsContextSkia::fillRoundedRectImpl):
(WebCore::GraphicsContextSkia::fillRectWithRoundedHole):
(WebCore::GraphicsContextSkia::drawPattern):
(WebCore::GraphicsContextSkia::renderingMode const):
* Source/WebCore/platform/graphics/skia/GraphicsContextSkia.h: Added.
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp: Added.
(WebCore::ImageBufferSkiaAcceleratedBackend::create):
(WebCore::ImageBufferSkiaAcceleratedBackend::ImageBufferSkiaAcceleratedBackend):
(WebCore::ImageBufferSkiaAcceleratedBackend::copyNativeImage):
(WebCore::ImageBufferSkiaAcceleratedBackend::createNativeImageReference):
(WebCore::ImageBufferSkiaAcceleratedBackend::getPixelBuffer):
(WebCore::ImageBufferSkiaAcceleratedBackend::putPixelBuffer):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.h: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaBackend.cpp: Copied from Source/WebCore/platform/graphics/PlatformImage.h.
(WebCore::ImageBufferSkiaBackend::debugDescription const):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaBackend.h: Copied from Source/WebCore/platform/graphics/PlatformImage.h.
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaSurfaceBackend.cpp: Added.
(WebCore::ImageBufferSkiaSurfaceBackend::calculateSafeBackendSize):
(WebCore::ImageBufferSkiaSurfaceBackend::calculateBytesPerRow):
(WebCore::ImageBufferSkiaSurfaceBackend::calculateMemoryCost):
(WebCore::ImageBufferSkiaSurfaceBackend::ImageBufferSkiaSurfaceBackend):
(WebCore::ImageBufferSkiaSurfaceBackend::bytesPerRow const):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaSurfaceBackend.h: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.cpp: Added.
(WebCore::ImageBufferSkiaUnacceleratedBackend::create):
(WebCore::ImageBufferSkiaUnacceleratedBackend::ImageBufferSkiaUnacceleratedBackend):
(WebCore::ImageBufferSkiaUnacceleratedBackend::copyNativeImage):
(WebCore::ImageBufferSkiaUnacceleratedBackend::createNativeImageReference):
(WebCore::ImageBufferSkiaUnacceleratedBackend::getPixelBuffer):
(WebCore::ImageBufferSkiaUnacceleratedBackend::putPixelBuffer):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.h: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
* Source/WebCore/platform/graphics/skia/ImageBufferUtilitiesSkia.cpp: Copied from Source/WebCore/platform/graphics/PlatformImage.h.
(WebCore::encodeData):
* Source/WebCore/platform/graphics/skia/ImageBufferUtilitiesSkia.h: Copied from Source/WebCore/platform/graphics/PlatformPathImpl.h.
* Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
(WebCore::PlatformImageNativeImageBackend::size const):
(WebCore::PlatformImageNativeImageBackend::hasAlpha const):
(WebCore::PlatformImageNativeImageBackend::colorSpace const):
(WebCore::NativeImage::singlePixelSolidColor const):
(WebCore::NativeImage::draw):
(WebCore::NativeImage::clearSubimages):
* Source/WebCore/platform/graphics/skia/PathSkia.cpp: Added.
(WebCore::PathSkia::create):
(WebCore::PathSkia::PathSkia):
(WebCore::PathSkia::copy const):
(WebCore::PathSkia::platformPath const):
(WebCore::PathSkia::add):
(WebCore::PathSkia::addPath):
(WebCore::PathSkia::applySegments const):
(WebCore::PathSkia::applyElements const):
(WebCore::PathSkia::isEmpty const):
(WebCore::PathSkia::currentPoint const):
(WebCore::PathSkia::transform):
(WebCore::PathSkia::contains const):
(WebCore::PathSkia::strokeContains const):
(WebCore::PathSkia::fastBoundingRect const):
(WebCore::PathSkia::boundingRect const):
(WebCore::PathSkia::strokeBoundingRect const):
* Source/WebCore/platform/graphics/skia/PathSkia.h: Added.
(isType):
* Source/WebCore/platform/graphics/skia/PatternSkia.cpp: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
(WebCore::Pattern::createPlatformPattern const):
* Source/WebCore/platform/graphics/skia/PlatformDisplaySkia.cpp: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
(WebCore::PlatformDisplay::skiaGLContext):
* Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFont.cpp: Added.
(WebCore::SkiaHarfBuzzFont::getOrCreate):
(WebCore::harfBuzzFontFunctions):
(WebCore::createHarfBuzzFace):
(WebCore::SkiaHarfBuzzFont::SkiaHarfBuzzFont):
(WebCore::SkiaHarfBuzzFont::~SkiaHarfBuzzFont):
(WebCore::floatToHarfBuzzPosition):
(WebCore::doubleToHarfBuzzPosition):
(WebCore::SkiaHarfBuzzFont::scaledFont):
(WebCore::SkiaHarfBuzzFont::glyph):
(WebCore::SkiaHarfBuzzFont::glyphWidth):
(WebCore::SkiaHarfBuzzFont::glyphWidths):
(WebCore::SkiaHarfBuzzFont::glyphExtents):
* Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFont.h: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
* Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFontCache.cpp: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
(WebCore::SkiaHarfBuzzFontCache::font):
(WebCore::SkiaHarfBuzzFontCache::remove):
(WebCore::SkiaHarfBuzzFontCache::clear):
* Source/WebCore/platform/graphics/skia/SkiaHarfBuzzFontCache.h: Copied from Source/WebCore/platform/graphics/PlatformPath.h.
* Source/WebCore/platform/graphics/skia/TransformationMatrixSkia.cpp: Added.
(WebCore::TransformationMatrix::TransformationMatrix):
(WebCore::TransformationMatrix::operator SkM44 const):
(WebCore::AffineTransform::AffineTransform):
(WebCore::AffineTransform::operator SkMatrix const):
* Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp:
(WebCore::BitmapTexture::updateContents):
(WebCore::BitmapTexture::copyFromExternalTexture):
* Source/WebCore/platform/graphics/texmap/BitmapTexture.h:
* Source/WebCore/platform/graphics/texmap/BitmapTexturePool.h:
* Source/WebCore/platform/graphics/texmap/TextureMapper.cpp:
(WebCore::TextureMapper::drawNumber):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp:
(WebCore::CoordinatedBackingStoreTile::swapBuffers):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly):
(WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerCairo.cpp: Added.
(WebCore::CoordinatedGraphicsLayer::paintTile):
(WebCore::CoordinatedGraphicsLayer::paintImage):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerSkia.cpp: Added.
(WebCore::AcceleratedBufferPool::singleton):
(WebCore::AcceleratedBufferPool::AcceleratedBufferPool):
(WebCore::AcceleratedBufferPool::~AcceleratedBufferPool):
(WebCore::AcceleratedBufferPool::acquireBuffer):
(WebCore::AcceleratedBufferPool::Entry::Entry):
(WebCore::AcceleratedBufferPool::Entry::markIsInUse):
(WebCore::AcceleratedBufferPool::Entry::canBeReleased const):
(WebCore::AcceleratedBufferPool::createAcceleratedBuffer):
(WebCore::AcceleratedBufferPool::scheduleReleaseUnusedBuffers):
(WebCore::AcceleratedBufferPool::releaseUnusedBuffersTimerFired):
(WebCore::CoordinatedGraphicsLayer::paintTile):
(WebCore::CoordinatedGraphicsLayer::paintImage):
* Source/WebCore/platform/graphics/texmap/coordinated/SurfaceUpdateInfo.h: Removed.
* Source/WebCore/platform/graphics/texmap/coordinated/Tile.cpp:
* Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStoreClient.h:
* Source/WebCore/platform/graphics/transforms/AffineTransform.h:
* Source/WebCore/platform/graphics/transforms/TransformationMatrix.h:
* Source/WebCore/platform/image-decoders/skia/ImageBackingStoreSkia.cpp: Copied from Source/WebCore/platform/graphics/ImageBufferPlatformBackend.h.
(WebCore::ImageBackingStore::image const):
* Source/WebCore/platform/skia/SharedBufferSkia.cpp: Added.
(WebCore::FragmentedSharedBuffer::FragmentedSharedBuffer):
(WebCore::FragmentedSharedBuffer::create):
(WebCore::SharedBuffer::createSkData const):
* Source/WebKit/PlatformWPE.cmake:
* Source/WebKit/Shared/API/c/cairo/WKImageCairo.cpp:
(WKImageCreateCairoSurface):
* Source/WebKit/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
(WebKit::updateBackingStore):
* Source/WebKit/Shared/ShareableBitmap.cpp:
(WebKit::ShareableBitmapConfiguration::ShareableBitmapConfiguration):
* Source/WebKit/Shared/ShareableBitmap.h:
(WebKit::ShareableBitmapConfiguration::imageInfo const):
* Source/WebKit/Shared/skia/ShareableBitmapSkia.cpp: Added.
(WebKit::ShareableBitmapConfiguration::validateColorSpace):
(WebKit::ShareableBitmapConfiguration::calculateBytesPerPixel):
(WebKit::ShareableBitmapConfiguration::calculateBytesPerRow):
(WebKit::ShareableBitmap::createGraphicsContext):
(WebKit::ShareableBitmap::paint):
(WebKit::ShareableBitmap::createImage):
(WebKit::ShareableBitmap::setOwnershipOfMemory):
* Source/WebKit/Shared/skia/WebCoreArgumentCodersSkia.cpp: Copied from Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.h.
(IPC::ArgumentCoder<WebCore::Font>::encodePlatformData):
(IPC::ArgumentCoder<WebCore::Font>::decodePlatformData):
(IPC::ArgumentCoder<WebCore::FontPlatformData::Attributes>::encodePlatformData):
(IPC::ArgumentCoder<WebCore::FontPlatformData::Attributes>::decodePlatformData):
* Source/WebKit/SourcesWPE.txt:
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
* Source/WebKit/UIProcess/API/wpe/WPEWebView.cpp:
(WKWPE::View::setCursor):
* Source/WebKit/UIProcess/Notifications/glib/NotificationService.cpp:
(WebKit::IconCache::iconPath):
(WebKit::IconCache::iconBytes):
* Source/WebKit/WebProcess/GPU/graphics/ImageBufferShareableBitmapBackend.cpp:
(WebKit::ImageBufferShareableBitmapBackend::copyNativeImage):
(WebKit::ImageBufferShareableBitmapBackend::createNativeImageReference):
* Source/WebKit/WebProcess/GPU/graphics/ImageBufferShareableBitmapBackend.h:
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp:
(WebKit::CompositingCoordinator::CompositingCoordinator):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.h:
* Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:
(WebKit::WebProcess::platformInitializeWebProcess):
* Source/cmake/OptionsWPE.cmake:
* Tools/ImageDiff/Cairo.cmake:
* Tools/ImageDiff/PlatformImage.h:
* Tools/TestWebKitAPI/PlatformWPE.cmake:
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:
(testWebViewWindowProperties):
* Tools/TestWebKitAPI/glib/PlatformWPE.cmake:
* Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h:
* Tools/WebKitTestRunner/PlatformWPE.cmake:
* Tools/WebKitTestRunner/PlatformWebView.h:
* Tools/WebKitTestRunner/cairo/TestInvocationCairo.cpp:
* Tools/WebKitTestRunner/libwpe/PlatformWebViewClient.h:
* Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.cpp:
(WTR::PlatformWebViewClientLibWPE::snapshot):
* Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.h:
* Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp: Added.
(WTR::computeSHA1HashStringForPixmap):
(WTR::dumpPixmap):
(WTR::TestInvocation::dumpPixelsAndCompareWithExpected):
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp:
(WTR::PlatformWebViewClientWPE::snapshot):
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.h:
* Tools/WebKitTestRunner/wpe/TestControllerWPE.cpp:
(WTR::TestController::takeViewPortSnapshot):
* Tools/wpe/backends/CMakeLists.txt:
* Tools/wpe/backends/HeadlessViewBackend.h:
* Tools/wpe/backends/fdo/HeadlessViewBackendFdo.cpp:
(WPEToolingBackends::HeadlessViewBackend::HeadlessViewBackend):
(WPEToolingBackends::HeadlessViewBackend::~HeadlessViewBackend):
(WPEToolingBackends::HeadlessViewBackend::snapshot):
(WPEToolingBackends::HeadlessViewBackend::updateSnapshot):

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




More information about the webkit-changes mailing list