Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 91fc1c8069203ee4a74fffafba8963b04f7131c7
      
https://github.com/WebKit/WebKit/commit/91fc1c8069203ee4a74fffafba8963b04f7131c7
  Author: Carlos Garcia Campos <cgar...@igalia.com>
  Date:   2025-02-17 (Mon, 17 Feb 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp
    M Source/WebCore/platform/graphics/texmap/BitmapTexture.h
    M Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp
    M Source/WebCore/platform/graphics/texmap/BitmapTexturePool.h
    M Source/WebCore/platform/graphics/texmap/TextureMapper.cpp
    M Source/WebCore/platform/graphics/texmap/TextureMapper.h
    M 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp

  Log Message:
  -----------
  [CoordinatedGraphics] Textures for imported DMABufs should not be acquired 
from the pool
https://bugs.webkit.org/show_bug.cgi?id=287695

Reviewed by Nikolas Zimmermann and Miguel Gomez.

We are allocating memory when the buffer is created that we don't need,
since the texture will be attached to a EGLImage. And those textures
can't be reused for other things either because allocated memory is
freed. For imported DMABufs we should always create a new texture
setting the image as target instead of allocating memory.

* Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp:
(WebCore::BitmapTexture::BitmapTexture):
(WebCore::BitmapTexture::reset):
* Source/WebCore/platform/graphics/texmap/BitmapTexture.h:
* Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp:
(WebCore::BitmapTexturePool::createTextureForImage):
(WebCore::BitmapTexturePool::releaseUnusedTexturesTimerFired):
* Source/WebCore/platform/graphics/texmap/BitmapTexturePool.h:
* Source/WebCore/platform/graphics/texmap/TextureMapper.cpp:
(WebCore::TextureMapper::createTextureForImage):
* Source/WebCore/platform/graphics/texmap/TextureMapper.h:
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp:
(WebCore::importToTexture):

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



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

Reply via email to