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

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

  Log Message:
  -----------
  [GTK][WPE] Make it possible to create a Damage with a maximum numbers of 
rectangles before uniting
https://bugs.webkit.org/show_bug.cgi?id=291073

Reviewed by Alejandro G. Castro.

This is what we really want when tracking dirty rects in GraphicsLayer.
In that case, instead of using a fixed cell size, we compute the grid
layout based on the damage rectangle ratio, and use a different cell
size for the given grid. Create the Damage in GraphicsLayer with the
layer size but passing 32 as the maximum number of rectangles.

* Source/WebCore/platform/graphics/Damage.h:
(WebCore::Damage::Damage):
(WebCore::Damage::rectsForPainting const):
(WebCore::Damage::makeFull):
(WebCore::Damage::gridSize const):
(WebCore::Damage::initialize):
(WebCore::Damage::cellIndexForRect const):
* 
Source/WebCore/platform/graphics/texmap/coordinated/GraphicsLayerCoordinated.cpp:
(WebCore::GraphicsLayerCoordinated::setNeedsDisplayInRect):
* Tools/TestWebKitAPI/Tests/WebCore/glib/Damage.cpp:
(TestWebKitAPI::TEST(Damage, MaxRectangles)):

Canonical link: https://commits.webkit.org/293355@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