[webkit-changes] [WebKit/WebKit] 041961: [CG] Building the dictionary of the async image de...

Said Abou-Hallawa noreply at github.com
Mon Mar 27 14:40:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 04196137234f9804eec961775176d440038ff11d
      https://github.com/WebKit/WebKit/commit/04196137234f9804eec961775176d440038ff11d
  Author: Said Abou-Hallawa <said at apple.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp

  Log Message:
  -----------
  [CG] Building the dictionary of the async image decoding options is not thread safe
https://bugs.webkit.org/show_bug.cgi?id=254532
rdar://106302373

Reviewed by Simon Fraser.

Make imageSourceThumbnailOptions() be thread-safe by ensuring the
static variable 'options' is initialized by only one thread.

* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::imageSourceThumbnailOptions):

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




More information about the webkit-changes mailing list