Skip to content

Commit

Permalink
Remove stale CGDisplayList flipping code
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259579
rdar://113001069

Reviewed by Wenson Hsieh.

* Source/WebKit/Shared/RemoteLayerTree/CGDisplayListImageBufferBackend.mm:
(WebKit::GraphicsContextCGDisplayList::GraphicsContextCGDisplayList):
* Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm:
(WebKit::RemoteLayerBackingStore::paintContents):

Canonical link: https://commits.webkit.org/266370@main
  • Loading branch information
hortont424 committed Jul 28, 2023
1 parent 9df05cf commit c3f188b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ static CFDictionaryRef makeContextOptions(const CGDisplayListImageBufferBackend:
GraphicsContextCGDisplayList(const CGDisplayListImageBufferBackend::Parameters& parameters, WebCore::RenderingMode renderingMode)
: GraphicsContextCG(adoptCF(WKCGCommandsContextCreate(parameters.logicalSize, makeContextOptions(parameters))).autorelease(), GraphicsContextCG::Unknown, renderingMode)
{
#if !HAVE(CG_DISPLAY_LIST_RESPECTING_CONTENTS_FLIPPED)
m_immutableBaseTransform.scale(1, -1);
m_immutableBaseTransform.translate(0, -ceilf(parameters.logicalSize.height() * parameters.resolutionScale));
#endif
m_immutableBaseTransform.scale(parameters.resolutionScale);
m_inverseImmutableBaseTransform = *m_immutableBaseTransform.inverse();
m_resolutionScale = parameters.resolutionScale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,8 @@ static bool hasValue(const ImageBufferBackendHandle& backendHandle)

BifurcatedGraphicsContext context(m_frontBuffer.imageBuffer->context(), displayListContext);
drawInContext(context, [&] {
#if HAVE(CG_DISPLAY_LIST_RESPECTING_CONTENTS_FLIPPED)
displayListContext.scale(FloatSize(1, -1));
displayListContext.translate(0, -m_parameters.size.height());
#endif
});
return;
}
Expand Down

0 comments on commit c3f188b

Please sign in to comment.