[webkit-changes] [WebKit/WebKit] 5d29c3: [Linux] Prevent encoding of DMABufObject lvalue re...

Žan Doberšek noreply at github.com
Mon Nov 28 10:42:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5d29c301be511e4ee1414e96c5c4dc0632c7bf31
      https://github.com/WebKit/WebKit/commit/5d29c301be511e4ee1414e96c5c4dc0632c7bf31
  Author: Žan Doberšek <zdobersek at 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




More information about the webkit-changes mailing list