[webkit-changes] [WebKit/WebKit] 4adf11: Add canLoad checks to AVVideoCaptureSource::facing...

youennf noreply at github.com
Thu Apr 6 12:21:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4adf11746cc77da75176d36c06d0d6ff43f6e31b
      https://github.com/WebKit/WebKit/commit/4adf11746cc77da75176d36c06d0d6ff43f6e31b
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    M Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.mm
    M Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h
    M Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm

  Log Message:
  -----------
  Add canLoad checks to AVVideoCaptureSource::facingModeFitnessScoreAdjustment implementation
https://bugs.webkit.org/show_bug.cgi?id=255058
rdar://107677782

Reviewed by Eric Carlson.

Since we are allowing the strings to not be there, we need to check in every code path whethere they are there.
We do a refactoring to compute the list of device types in AVVideoCaptureSource and reuse it in AVCaptureDeviceManager.

* Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.h:
* Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.mm:
* Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:
(WebCore::AVVideoCaptureSource::facingModeFitnessScoreAdjustment const):

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




More information about the webkit-changes mailing list