Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5d29c301be511e4ee1414e96c5c4dc0632c7bf31
      
https://github.com/WebKit/WebKit/commit/5d29c301be511e4ee1414e96c5c4dc0632c7bf31
  Author: Žan Doberšek <zdober...@igalia.com>
  Date:   2022-11-28 (Mon, 28 Nov 2022)

  Changed paths:
    M Source/WebCore/platform/graphics/gbm/DMABufObject.h

  Log Message:
  -----------
  [Linux] Prevent encoding of DMABufObject lvalue references
https://bugs.webkit.org/show_bug.cgi?id=248395

Reviewed by Michael Catanzaro.

Remove the lvaue-ref-qualified DMABufObject::encode() method, only leaving
the encoding possible for rvalues of this type. Currently this method is
not used, so everything continues to work. But in any future encoding of
such objects, rvalues will be demanded, avoiding accidentally duplicating
the underlying resources (specifically the different file descriptors).

* Source/WebCore/platform/graphics/gbm/DMABufObject.h:
(WebCore::DMABufObject::encode const): Deleted.

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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to