[webkit-changes] [WebKit/WebKit] 65e7ec: [visionOS] Layers that `containsBitmapOnly` should...

Etienne Segonzac noreply at github.com
Tue Dec 3 00:12:29 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 65e7eccfee023f44061910753ac1ae3e968acf9d
      https://github.com/WebKit/WebKit/commit/65e7eccfee023f44061910753ac1ae3e968acf9d
  Author: Etienne Segonzac <sgz at apple.com>
  Date:   2024-12-03 (Tue, 03 Dec 2024)

  Changed paths:
    M Source/WebKit/GPUProcess/graphics/RemoteImageBufferSet.cpp
    M Source/WebKit/GPUProcess/graphics/RemoteImageBufferSet.h
    M Source/WebKit/GPUProcess/graphics/RemoteImageBufferSet.messages.in
    M Source/WebKit/WebProcess/GPU/graphics/RemoteImageBufferSetProxy.cpp

  Log Message:
  -----------
  [visionOS] Layers that `containsBitmapOnly` should not use Dynamic Content Scaling
https://bugs.webkit.org/show_bug.cgi?id=283674
<rdar://140420051>

Reviewed by Mike Wyrzykowski.

Make the rendering purpose part of the RemoteImageBufferSet's
configuration so that we can skip dynamic content scaling when allocating
image buffers for bitmap only layer backings.
(The RemoteRenderingBackend already had the rendering purpose check.)

* Source/WebKit/GPUProcess/graphics/RemoteImageBufferSet.h:
* Source/WebKit/GPUProcess/graphics/RemoteImageBufferSet.messages.in:
* Source/WebKit/WebProcess/GPU/graphics/RemoteImageBufferSetProxy.cpp:
(WebKit::RemoteImageBufferSetProxy::willPrepareForDisplay):
* Source/WebKit/GPUProcess/graphics/RemoteImageBufferSet.cpp:
(WebKit::RemoteImageBufferSet::updateConfiguration):
Pass down the new configuration parameter.

(WebKit::RemoteImageBufferSet::ensureBufferForDisplay):
Don't create a dynamic content scaling resource cache for bitmap only
layers.

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