[webkit-changes] [WebKit/WebKit] 44c742: [TexMap] Make sure the damage is not propagated at...

Pawel Lampe noreply at github.com
Thu Jan 16 01:23:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 44c74277d5c32f0de52fcadf6cb431e4f5f3e105
      https://github.com/WebKit/WebKit/commit/44c74277d5c32f0de52fcadf6cb431e4f5f3e105
  Author: Pawel Lampe <plampe at igalia.com>
  Date:   2025-01-16 (Thu, 16 Jan 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
    M Source/WebCore/platform/graphics/texmap/TextureMapperLayer.h
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayer.cpp
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayer.h
    M Source/WebCore/platform/graphics/texmap/coordinated/GraphicsLayerCoordinated.cpp
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp

  Log Message:
  -----------
  [TexMap] Make sure the damage is not propagated at any level when disabled
https://bugs.webkit.org/show_bug.cgi?id=285844

Reviewed by Carlos Garcia Campos.

This change disables damage propagation:
- in the main thread
- in the compositor thread - before the damage is collected
thus improving performance and memory consumption when damage propagation runtime preference is disabled.

* Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::collectDamageSelf):
* Source/WebCore/platform/graphics/texmap/TextureMapperLayer.h:
(WebCore::TextureMapperLayer::setDamagePropagation):
(WebCore::TextureMapperLayer::canInferDamage const):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayer.cpp:
(WebCore::CoordinatedPlatformLayer::ensureTarget):
(WebCore::CoordinatedPlatformLayer::flushCompositingState):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayer.h:
(WebCore::CoordinatedPlatformLayer::setDamagePropagation):
(WebCore::CoordinatedPlatformLayer::damagePropagation const):
* Source/WebCore/platform/graphics/texmap/coordinated/GraphicsLayerCoordinated.cpp:
(WebCore::GraphicsLayerCoordinated::updateDamage):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::LayerTreeHost):
(WebKit::LayerTreeHost::attachLayer):

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



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


More information about the webkit-changes mailing list