Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c3c824d3e8ac9bb603ddf2ada1834b7bfa8ff744
      
https://github.com/WebKit/WebKit/commit/c3c824d3e8ac9bb603ddf2ada1834b7bfa8ff744
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/Damage.h
    M Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
    M 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp
    M 
Source/WebCore/platform/graphics/texmap/coordinated/GraphicsLayerCoordinated.cpp
    M Tools/TestWebKitAPI/Tests/WebCore/glib/Damage.cpp

  Log Message:
  -----------
  [GTK][WPE] Adding any rect to a Damage that contains the damage area should 
change the mode to full
https://bugs.webkit.org/show_bug.cgi?id=290842

Reviewed by Adrian Perez de Castro.

Now that we always create the Damage with the layer size, we don't need
to pass a size to makeFull(), we should always use the current
rectangle. Also optimize a bit paintToTextureMapper() to avoid fragments
when frame damage is full.

* Source/WebCore/platform/graphics/Damage.h:
(WebCore::Damage::makeFull):
(WebCore::Damage::add):
* Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::damageWholeLayer):
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp:
(WebCore::CoordinatedBackingStore::paintToTextureMapper):
* 
Source/WebCore/platform/graphics/texmap/coordinated/GraphicsLayerCoordinated.cpp:
(WebCore::GraphicsLayerCoordinated::setNeedsDisplay):
* Tools/TestWebKitAPI/Tests/WebCore/glib/Damage.cpp:
(TestWebKitAPI::TEST(Damage, Mode)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to