Skip to content

Commit

Permalink
VisionOS build failure after 278445@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=273825
rdar://127670076

Unreviewed, build fix.

* Source/WebKit/Shared/RemoteLayerTree/DynamicContentScalingImageBufferBackend.h:
* Source/WebKit/Shared/RemoteLayerTree/DynamicContentScalingImageBufferBackend.mm:
(WebKit::DynamicContentScalingImageBufferBackend::canMapBackingStore const):

Canonical link: https://commits.webkit.org/278460@main
  • Loading branch information
kkinnunen-apple committed May 7, 2024
1 parent c1ec6be commit c32dbef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ class DynamicContentScalingImageBufferBackend : public WebCore::ImageBufferCGBac

void releaseGraphicsContext() final;

bool canMapBackingStore() const final;

// NOTE: These all ASSERT_NOT_REACHED().
RefPtr<WebCore::NativeImage> copyNativeImage() final;
RefPtr<WebCore::NativeImage> createNativeImageReference() final;
void getPixelBuffer(const WebCore::IntRect&, WebCore::PixelBuffer&) final;
void putPixelBuffer(const WebCore::PixelBuffer&, const WebCore::IntRect& srcRect, const WebCore::IntPoint& destPoint, WebCore::AlphaPremultiplication destFormat) final;


protected:
unsigned bytesPerRow() const final;
String debugDescription() const final;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ static CFDictionaryRef makeContextOptions(const DynamicContentScalingImageBuffer
m_context = nullptr;
}

bool DynamicContentScalingImageBufferBackend::canMapBackingStore() const
{
return false;
}

RefPtr<WebCore::NativeImage> DynamicContentScalingImageBufferBackend::copyNativeImage()
{
ASSERT_NOT_REACHED();
Expand Down

0 comments on commit c32dbef

Please sign in to comment.