Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 07408cb6acf1101713304b32a73366a105df9298
      
https://github.com/WebKit/WebKit/commit/07408cb6acf1101713304b32a73366a105df9298
  Author: Sam Weinig <[email protected]>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/GraphicsLayer.h
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h
    M Source/WebCore/platform/graphics/coordinated/GraphicsLayerCoordinated.cpp
    M Source/WebCore/platform/graphics/coordinated/GraphicsLayerCoordinated.h
    M Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
    M Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
    M 
Source/WebCore/platform/graphics/texmap/TextureMapperSparseBackingStore.cpp
    M Source/WebCore/platform/graphics/texmap/TextureMapperSparseBackingStore.h
    M Source/WebCore/platform/graphics/texmap/TextureMapperTile.cpp
    M Source/WebCore/platform/graphics/texmap/TextureMapperTile.h
    M Source/WebCore/platform/graphics/texmap/TextureMapperTiledBackingStore.cpp
    M Source/WebCore/platform/graphics/texmap/TextureMapperTiledBackingStore.h
    M Source/WebCore/rendering/RenderLayerBacking.cpp
    M Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp
    M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.h
    M Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.h

  Log Message:
  -----------
  [Image Redux] Have GraphicsLayer take a NativeImage for directly composited 
images
https://bugs.webkit.org/show_bug.cgi?id=325736

Reviewed by Simon Fraser.

Every GraphicsLayer::setContentsToImage() implementation immediately turned its 
Image into a native
at its natural size. While this was fine, since all the Image's were 
BitmapImages, it's unnecessary
since we can simplify things by having RenderLayerBacking just create the 
native images instead.

Also renames shouldDirectlyCompositeImage(Image*) to 
canDirectlyCompositeNativeImage() since none
of the implementations actually inspected the image, what it was really doing 
was a "can" check.

* Source/WebCore/platform/graphics/GraphicsLayer.h:
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h:
* Source/WebCore/platform/graphics/coordinated/GraphicsLayerCoordinated.cpp:
* Source/WebCore/platform/graphics/coordinated/GraphicsLayerCoordinated.h:
* Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
* Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperSparseBackingStore.cpp:
* Source/WebCore/platform/graphics/texmap/TextureMapperSparseBackingStore.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperTile.cpp:
* Source/WebCore/platform/graphics/texmap/TextureMapperTile.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperTiledBackingStore.cpp:
* Source/WebCore/platform/graphics/texmap/TextureMapperTiledBackingStore.h:
* Source/WebCore/rendering/RenderLayerBacking.cpp:
* Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp:
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.h:
* Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to