[webkit-changes] [WebKit/WebKit] a576e4: Use move instead of copy when encoding the ImageBu...

mattwoodrow noreply at github.com
Thu Mar 9 17:09:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a576e4d3baa9f6584b4ecb5bd73fcd5beca8946f
      https://github.com/WebKit/WebKit/commit/a576e4d3baa9f6584b4ecb5bd73fcd5beca8946f
  Author: Matt Woodrow <mattwoodrow at apple.com>
  Date:   2023-03-09 (Thu, 09 Mar 2023)

  Changed paths:
    M Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm
    M Source/WebKit/WebProcess/GPU/graphics/ImageBufferBackendHandleSharing.h
    M Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferRemoteIOSurfaceBackend.cpp
    M Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferRemoteIOSurfaceBackend.h

  Log Message:
  -----------
  Use move instead of copy when encoding the ImageBufferBackendHandle in RemoteLayerBackingStore.
https://bugs.webkit.org/show_bug.cgi?id=253608

Reviewed by Simon Fraser.

We currently end up copying the backend handle twice, each of which calls into the kernel to change mach_port refs.

* Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferRemoteIOSurfaceBackend.h:

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




More information about the webkit-changes mailing list