Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4ac0a7c004e0484efe684fc41487727bb9b0c5c7
      
https://github.com/WebKit/WebKit/commit/4ac0a7c004e0484efe684fc41487727bb9b0c5c7
  Author: Etienne Segonzac <s...@apple.com>
  Date:   2024-04-07 (Sun, 07 Apr 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/BitmapImage.h
    M Source/WebCore/platform/graphics/BitmapImageSource.cpp
    M Source/WebCore/platform/graphics/BitmapImageSource.h
    M Source/WebCore/platform/graphics/Image.h
    M Source/WebCore/platform/graphics/ImageDecoder.h
    M Source/WebCore/platform/graphics/ImageSource.h
    M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp
    M Source/WebCore/platform/graphics/cg/ImageDecoderCG.h
    M Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp

  Log Message:
  -----------
  [visionOS] Refine activation rules for Image Fullscreen
https://bugs.webkit.org/show_bug.cgi?id=272218
<rdar://125913434>

Reviewed by Said Abou-Hallawa.

Introduce a `shouldUseQuickLookForFullscreen()` method on Images. It
defaults to false and queries the ImageDecoder for bitmap images.

Gate the use of Image Fullscreen on this flag.

* Source/WebCore/platform/graphics/BitmapImage.h:
* Source/WebCore/platform/graphics/BitmapImageSource.cpp:
(WebCore::BitmapImageSource::shouldUseQuickLookForFullscreen const):
* Source/WebCore/platform/graphics/BitmapImageSource.h:
* Source/WebCore/platform/graphics/Image.h:
(WebCore::Image::shouldUseQuickLookForFullscreen const):
* Source/WebCore/platform/graphics/ImageDecoder.h:
(WebCore::ImageDecoder::shouldUseQuickLookForFullscreen const):
* Source/WebCore/platform/graphics/ImageSource.h:
(WebCore::ImageSource::shouldUseQuickLookForFullscreen const):
Wire the `shouldUseQuickLookForFullscreen()` check to the ImageDecoder.

* Source/WebCore/platform/graphics/cg/ImageDecoderCG.h:
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::ImageDecoderCG::shouldUseQuickLookForFullscreen const):
Add the WKA entry point.

* Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:
(WebKit::WebFullScreenManager::enterFullScreenForElement):
Add the `shouldUseQuickLookForFullscreen()` check.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to