Skip to content

Commit

Permalink
Cherry-pick b9e5b9f. rdar://problem/106651668
Browse files Browse the repository at this point in the history
    Cocoa Small RemoteLayerBackingStores should be drawn with software
    https://bugs.webkit.org/show_bug.cgi?id=253447
    rdar://problem/106651668

    Reviewed by Simon Fraser.

    Add a specific GPUP side backend for ImageBitmaps used for LayerBacking
    purposes, e.g. RemoteLayerBackingStore buffers. The buffers are drawn
    to with software rasterization.

    Fixes a bug in RemoteDisplayListRecorderProxy::createImageBuffer where
    intermediate ImageBuffers for filters would be created as Layer
    rendering purpose, where as the Layer purpose is supposed to be only
    for the Layer backing stores.

    Fixes a bug in RenderingPurpose where missing ShareableLocalSnapshot
    was not part of the enum serialization, making the serialization
    incorrect.

    * Source/WebCore/platform/ScrollbarsController.h:
    * Source/WebCore/platform/graphics/cocoa/IOSurface.h:
    * Source/WebCore/platform/graphics/cocoa/IOSurface.mm:
    (WebCore::IOSurface::createBitmapPlatformContext):
    * Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp:
    (WebKit::isSmallLayerBacking):
    (WebKit::RemoteRenderingBackend::createImageBufferWithQualifiedIdentifier):
    (WebKit::RemoteRenderingBackend::prepareLayerBuffersForDisplay):
    * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
    * Source/WebKit/SourcesCocoa.txt:
    * Source/WebKit/WebKit.xcodeproj/project.pbxproj:
    * Source/WebKit/WebProcess/GPU/graphics/RemoteDisplayListRecorderProxy.cpp:
    (WebKit::RemoteDisplayListRecorderProxy::createImageBuffer const):
    * Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBitmapBackend.cpp: Added.
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::create):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::ImageBufferShareableMappedIOSurfaceBitmapBackend):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::createBackendHandle const):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::context):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::setOwnershipIdentity):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::backendSize const):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::bytesPerRow const):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::copyNativeImage):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::copyNativeImageForDrawing):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::sinkIntoNativeImage):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::isInUse const):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::releaseGraphicsContext):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::setVolatile):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::setNonVolatile):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::volatilityState const):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::setVolatilityState):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::transferToNewContext):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::getPixelBuffer):
    (WebKit::ImageBufferShareableMappedIOSurfaceBitmapBackend::putPixelBuffer):
    * Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBitmapBackend.h: Added.
    * Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollbarsController.h:

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

Identifier: 263769.73@safari-7616.1.14.11-branch
  • Loading branch information
kkinnunen-apple authored and MyahCobbs committed May 25, 2023
1 parent 4f89809 commit 0ab29f9
Show file tree
Hide file tree
Showing 11 changed files with 340 additions and 22 deletions.
1 change: 0 additions & 1 deletion Source/WebCore/platform/ScrollbarsController.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ namespace WebCore {

class Scrollbar;
class ScrollableArea;
class ScrollingCoordinator;
enum class ScrollbarOrientation : uint8_t;

class ScrollbarsController {
Expand Down
45 changes: 31 additions & 14 deletions Source/WebCore/platform/graphics/cocoa/IOSurface.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,34 +85,45 @@ class IOSurface final {

class Locker {
public:
enum class AccessMode {
ReadOnly,
ReadWrite
enum class AccessMode : uint32_t {
ReadWrite = 0,
ReadOnly = kIOSurfaceLockReadOnly,
};

Locker(IOSurface& surface, AccessMode mode = AccessMode::ReadOnly)
: m_surface(surface)
, m_flags(flagsFromMode(mode))
explicit Locker(IOSurface& surface, AccessMode mode = AccessMode::ReadOnly)
: m_surface(surface.surface())
, m_flags(static_cast<uint32_t>(mode))
{
IOSurfaceLock(m_surface, m_flags, nullptr);
}

Locker(Locker&& other)
: m_surface(std::exchange(other.m_surface, nullptr))
, m_flags(other.m_flags)
{
IOSurfaceLock(m_surface.surface(), m_flags, nullptr);
}

~Locker()
{
IOSurfaceUnlock(m_surface.surface(), m_flags, nullptr);
if (!m_surface)
return;
IOSurfaceUnlock(m_surface, m_flags, nullptr);
}

void * surfaceBaseAddress() const
Locker& operator=(Locker&& other)
{
return IOSurfaceGetBaseAddress(m_surface.surface());
m_surface = std::exchange(other.m_surface, nullptr);
m_flags = other.m_flags;
return *this;
}

private:
static uint32_t flagsFromMode(AccessMode mode)
void * surfaceBaseAddress() const
{
return mode == AccessMode::ReadOnly ? kIOSurfaceLockReadOnly : 0;
return IOSurfaceGetBaseAddress(m_surface);
}
IOSurface& m_surface;

private:
IOSurfaceRef m_surface;
uint32_t m_flags;
};

Expand Down Expand Up @@ -154,6 +165,12 @@ class IOSurface final {

WEBCORE_EXPORT RetainPtr<CGContextRef> createPlatformContext(PlatformDisplayID = 0);

struct LockAndContext {
IOSurface::Locker lock;
RetainPtr<CGContextRef> context;
};
WEBCORE_EXPORT std::optional<LockAndContext> createBitmapPlatformContext();

// Querying volatility can be expensive, so in cases where the surface is
// going to be used immediately, use the return value of setVolatile to
// determine whether the data was purged, instead of first calling state() or isVolatile().
Expand Down
11 changes: 11 additions & 0 deletions Source/WebCore/platform/graphics/cocoa/IOSurface.mm
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,17 @@ static IntSize computeMaximumSurfaceSize()
return cgContext;
}

std::optional<IOSurface::LockAndContext> IOSurface::createBitmapPlatformContext()
{
IOSurface::Locker locker { *this, IOSurface::Locker::AccessMode::ReadWrite };
auto configuration = bitmapConfiguration();
auto size = this->size();
auto context = adoptCF(CGBitmapContextCreate(locker.surfaceBaseAddress(), size.width(), size.height(), configuration.bitsPerComponent, bytesPerRow(), colorSpace().platformColorSpace(), configuration.bitmapInfo));
if (!context)
return std::nullopt;
return LockAndContext { WTFMove(locker), WTFMove(context) };
}

SetNonVolatileResult IOSurface::state() const
{
uint32_t previousState = 0;
Expand Down
27 changes: 24 additions & 3 deletions Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
#import <WebCore/TextDetectorImplementation.h>
#endif

#if PLATFORM(COCOA)
#include "ImageBufferShareableMappedIOSurfaceBitmapBackend.h"
#endif

#if ENABLE(IPC_TESTING_API)
#define WEB_PROCESS_TERMINATE_CONDITION !m_gpuConnectionToWebProcess->connection().ignoreInvalidMessageForTesting()
#else
Expand Down Expand Up @@ -97,6 +101,18 @@
namespace WebKit {
using namespace WebCore;

static bool isSmallLayerBacking(const ImageBufferBackendParameters& parameters)
{
#if PLATFORM(COCOA)
const unsigned maxSmallLayerBackingArea = 64u * 64u; // 4096 == 16kb backing store which equals 1 page on AS.
return parameters.purpose == RenderingPurpose::LayerBacking
&& ImageBufferBackend::calculateBackendSize(parameters).area() <= maxSmallLayerBackingArea
&& (parameters.pixelFormat == PixelFormat::BGRA8 || parameters.pixelFormat == PixelFormat::BGRX8);
#else
return false;
#endif
}

Ref<RemoteRenderingBackend> RemoteRenderingBackend::create(GPUConnectionToWebProcess& gpuConnectionToWebProcess, RemoteRenderingBackendCreationParameters&& creationParameters, IPC::StreamServerConnection::Handle&& connectionHandle)
{
auto instance = adoptRef(*new RemoteRenderingBackend(gpuConnectionToWebProcess, WTFMove(creationParameters), WTFMove(connectionHandle)));
Expand Down Expand Up @@ -224,7 +240,12 @@ void RemoteRenderingBackend::createImageBufferWithQualifiedIdentifier(const Floa
creationContext.resourceOwner = m_resourceOwner;

if (renderingMode == RenderingMode::Accelerated) {
imageBuffer = RemoteImageBuffer::create<AcceleratedImageBufferShareableMappedBackend>(logicalSize, resolutionScale, colorSpace, pixelFormat, purpose, *this, imageBufferResourceIdentifier, creationContext);
#if PLATFORM(COCOA)
if (isSmallLayerBacking({ logicalSize, resolutionScale, colorSpace, pixelFormat, purpose }))
imageBuffer = RemoteImageBuffer::create<ImageBufferShareableMappedIOSurfaceBitmapBackend>(logicalSize, resolutionScale, colorSpace, pixelFormat, purpose, *this, imageBufferResourceIdentifier, creationContext);
#endif
if (!imageBuffer)
imageBuffer = RemoteImageBuffer::create<AcceleratedImageBufferShareableMappedBackend>(logicalSize, resolutionScale, colorSpace, pixelFormat, purpose, *this, imageBufferResourceIdentifier, creationContext);
}

if (!imageBuffer)
Expand Down Expand Up @@ -524,8 +545,8 @@ void RemoteRenderingBackend::prepareLayerBuffersForDisplay(const PrepareBackingS
outputData.displayRequirement = SwapBuffersDisplayRequirement::NeedsNoDisplay;
return;
}
if (!frontBuffer || !inputData.supportsPartialRepaint)

if (!frontBuffer || !inputData.supportsPartialRepaint || isSmallLayerBacking(frontBuffer->parameters()))
needsFullDisplay = true;

if (!backBuffer || backBuffer->isInUse()) {
Expand Down
3 changes: 2 additions & 1 deletion Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,8 @@ enum class WebCore::RenderingPurpose : uint8_t {
LayerBacking,
Snapshot,
ShareableSnapshot,
MediaPainting
ShareableLocalSnapshot,
MediaPainting,
};

#if ENABLE(CONTENT_FILTERING_IN_NETWORKING_PROCESS)
Expand Down
1 change: 1 addition & 0 deletions Source/WebKit/SourcesCocoa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ WebProcess/Extensions/Bindings/JSWebExtensionWrapper.cpp

WebProcess/GPU/graphics/cocoa/ImageBufferRemoteIOSurfaceBackend.cpp
WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp
WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBitmapBackend.cpp
WebProcess/GPU/graphics/cocoa/RemoteGraphicsContextGLProxyCocoa.mm
WebProcess/GPU/media/RemoteAudioSourceProvider.cpp
WebProcess/GPU/media/RemoteAudioSourceProviderManager.cpp
Expand Down
4 changes: 4 additions & 0 deletions Source/WebKit/WebKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5647,6 +5647,8 @@
7B0DF7DC29090ACA001C2701 /* DisplayListRecorderFlushIdentifier.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DisplayListRecorderFlushIdentifier.h; sourceTree = "<group>"; };
7B16191227198AA900C40EAC /* RemoteGraphicsContextGLProxyCocoa.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteGraphicsContextGLProxyCocoa.mm; sourceTree = "<group>"; };
7B1DB26525668CE0000E26BC /* ArrayReference.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArrayReference.h; sourceTree = "<group>"; };
7B22007029B625020034C826 /* ImageBufferShareableMappedIOSurfaceBitmapBackend.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ImageBufferShareableMappedIOSurfaceBitmapBackend.cpp; sourceTree = "<group>"; };
7B22007129B625020034C826 /* ImageBufferShareableMappedIOSurfaceBitmapBackend.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ImageBufferShareableMappedIOSurfaceBitmapBackend.h; sourceTree = "<group>"; };
7B2DDD5E27CCD9710060ABAB /* IPCStreamTesterProxy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IPCStreamTesterProxy.h; sourceTree = "<group>"; };
7B483F1B25CDDA9B00120486 /* MessageReceiveQueueMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageReceiveQueueMap.h; sourceTree = "<group>"; };
7B483F1C25CDDA9B00120486 /* MessageReceiveQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageReceiveQueue.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -11399,6 +11401,8 @@
2D25F32825758E9000231A8B /* ImageBufferRemoteIOSurfaceBackend.h */,
727A7F342407857D004D2931 /* ImageBufferShareableMappedIOSurfaceBackend.cpp */,
727A7F352407857F004D2931 /* ImageBufferShareableMappedIOSurfaceBackend.h */,
7B22007029B625020034C826 /* ImageBufferShareableMappedIOSurfaceBitmapBackend.cpp */,
7B22007129B625020034C826 /* ImageBufferShareableMappedIOSurfaceBitmapBackend.h */,
7B16191227198AA900C40EAC /* RemoteGraphicsContextGLProxyCocoa.mm */,
);
path = cocoa;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ RefPtr<ImageBuffer> RemoteDisplayListRecorderProxy::createImageBuffer(const Floa
return Recorder::createImageBuffer(size, resolutionScale, colorSpace, renderingMode, renderingMethod);

// FIXME: Ideally we'd plumb the purpose through for callers of GraphicsContext::createImageBuffer().
RenderingPurpose purpose = m_imageBuffer ? m_imageBuffer->renderingPurpose() : RenderingPurpose::Unspecified;
RenderingPurpose purpose = RenderingPurpose::Unspecified;
return m_renderingBackend->createImageBuffer(size, renderingMode.value_or(this->renderingMode()), purpose, resolutionScale, colorSpace, PixelFormat::BGRA8);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
/*
* Copyright (C) 2020-2023 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "config.h"
#include "ImageBufferShareableMappedIOSurfaceBitmapBackend.h"

#if ENABLE(GPU_PROCESS) && HAVE(IOSURFACE)

#include "Logging.h"
#include <WebCore/GraphicsContextCG.h>
#include <WebCore/IOSurfacePool.h>
#include <wtf/IsoMallocInlines.h>
#include <wtf/StdLibExtras.h>
#include <wtf/spi/cocoa/IOSurfaceSPI.h>

namespace WebKit {
using namespace WebCore;

WTF_MAKE_ISO_ALLOCATED_IMPL(ImageBufferShareableMappedIOSurfaceBitmapBackend);

std::unique_ptr<ImageBufferShareableMappedIOSurfaceBitmapBackend> ImageBufferShareableMappedIOSurfaceBitmapBackend::create(const Parameters& parameters, const ImageBufferCreationContext& creationContext)
{
IntSize backendSize = ImageBufferIOSurfaceBackend::calculateSafeBackendSize(parameters);
if (backendSize.isEmpty())
return nullptr;

auto surface = IOSurface::create(creationContext.surfacePool, backendSize, parameters.colorSpace, IOSurface::Name::ImageBuffer, IOSurface::formatForPixelFormat(parameters.pixelFormat));
if (!surface)
return nullptr;

auto lockAndContext = surface->createBitmapPlatformContext();
if (!lockAndContext)
return nullptr;
CGContextClearRect(lockAndContext->context.get(), FloatRect(FloatPoint::zero(), backendSize));
return makeUnique<ImageBufferShareableMappedIOSurfaceBitmapBackend>(parameters, WTFMove(surface), WTFMove(*lockAndContext), creationContext.surfacePool);
}

ImageBufferShareableMappedIOSurfaceBitmapBackend::ImageBufferShareableMappedIOSurfaceBitmapBackend(const Parameters& parameters, std::unique_ptr<IOSurface> surface, IOSurface::LockAndContext&& lockAndContext, IOSurfacePool* ioSurfacePool)
: ImageBufferCGBackend(parameters)
, m_surface(WTFMove(surface))
, m_lock(WTFMove(lockAndContext.lock))
, m_ioSurfacePool(ioSurfacePool)
{
m_context = makeUnique<GraphicsContextCG>(lockAndContext.context.get());
applyBaseTransform(*m_context);
}

ImageBufferBackendHandle ImageBufferShareableMappedIOSurfaceBitmapBackend::createBackendHandle(SharedMemory::Protection) const
{
return ImageBufferBackendHandle(m_surface->createSendRight());
}

GraphicsContext& ImageBufferShareableMappedIOSurfaceBitmapBackend::context()
{
if (!m_context) {
auto lockAndContext = m_surface->createBitmapPlatformContext();
if (lockAndContext) {
m_lock = WTFMove(lockAndContext->lock);
m_context = makeUnique<GraphicsContextCG>(lockAndContext->context.get());
} else
m_context = makeUnique<GraphicsContextCG>(nullptr);
applyBaseTransform(*m_context);
}
return *m_context;
}

void ImageBufferShareableMappedIOSurfaceBitmapBackend::setOwnershipIdentity(const WebCore::ProcessIdentity& resourceOwner)
{
m_surface->setOwnershipIdentity(resourceOwner);
}

IntSize ImageBufferShareableMappedIOSurfaceBitmapBackend::backendSize() const
{
return m_surface->size();
}

unsigned ImageBufferShareableMappedIOSurfaceBitmapBackend::bytesPerRow() const
{
return m_surface->bytesPerRow();
}

RefPtr<NativeImage> ImageBufferShareableMappedIOSurfaceBitmapBackend::copyNativeImage(BackingStoreCopy copyBehavior)
{
ASSERT_NOT_REACHED(); // Not applicable for LayerBacking.
return nullptr;
}

RefPtr<NativeImage> ImageBufferShareableMappedIOSurfaceBitmapBackend::copyNativeImageForDrawing(GraphicsContext&)
{
ASSERT_NOT_REACHED(); // Not applicable for LayerBacking.
return nullptr;
}

RefPtr<NativeImage> ImageBufferShareableMappedIOSurfaceBitmapBackend::sinkIntoNativeImage()
{
ASSERT_NOT_REACHED(); // Not applicable for LayerBacking.
return nullptr;
}

bool ImageBufferShareableMappedIOSurfaceBitmapBackend::isInUse() const
{
return m_surface->isInUse();
}

void ImageBufferShareableMappedIOSurfaceBitmapBackend::releaseGraphicsContext()
{
m_context = nullptr;
m_lock = std::nullopt;
}

bool ImageBufferShareableMappedIOSurfaceBitmapBackend::setVolatile()
{
if (m_surface->isInUse())
return false;

setVolatilityState(VolatilityState::Volatile);
m_surface->setVolatile(true);
return true;
}

SetNonVolatileResult ImageBufferShareableMappedIOSurfaceBitmapBackend::setNonVolatile()
{
setVolatilityState(VolatilityState::NonVolatile);
return m_surface->setVolatile(false);
}

VolatilityState ImageBufferShareableMappedIOSurfaceBitmapBackend::volatilityState() const
{
return m_volatilityState;
}

void ImageBufferShareableMappedIOSurfaceBitmapBackend::setVolatilityState(VolatilityState volatilityState)
{
m_volatilityState = volatilityState;
}

void ImageBufferShareableMappedIOSurfaceBitmapBackend::transferToNewContext(const ImageBufferCreationContext&)
{
ASSERT_NOT_REACHED(); // Not applicable for LayerBacking.
}

RefPtr<PixelBuffer> ImageBufferShareableMappedIOSurfaceBitmapBackend::getPixelBuffer(const PixelBufferFormat&, const IntRect&, const ImageBufferAllocator&)
{
ASSERT_NOT_REACHED(); // Not applicable for LayerBacking.
return nullptr;
}

void ImageBufferShareableMappedIOSurfaceBitmapBackend::putPixelBuffer(const PixelBuffer&, const IntRect&, const IntPoint&, AlphaPremultiplication)
{
ASSERT_NOT_REACHED(); // Not applicable for LayerBacking.
}

} // namespace WebKit

#endif // ENABLE(GPU_PROCESS) && HAVE(IOSURFACE)
Loading

0 comments on commit 0ab29f9

Please sign in to comment.