Title: [293496] trunk/Source/WebKit
- Revision
- 293496
- Author
- [email protected]
- Date
- 2022-04-26 21:49:25 -0700 (Tue, 26 Apr 2022)
Log Message
Don't flush the IOSurface CGContext when just setting ownership identity
https://bugs.webkit.org/show_bug.cgi?id=239800
Reviewed by Myles C. Maxfield.
ImageBufferIOSurfaceBackend::surface() has a call to flushContext(), which we don't need
to do if we're just getting the surface to call setOwnershipIdentity(), so use m_surface
directly.
This is a ~18% perf gain on the Leaves MotionMark subtest on iPhone.
* WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp:
(WebKit::ImageBufferShareableMappedIOSurfaceBackend::setOwnershipIdentity):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (293495 => 293496)
--- trunk/Source/WebKit/ChangeLog 2022-04-27 02:48:40 UTC (rev 293495)
+++ trunk/Source/WebKit/ChangeLog 2022-04-27 04:49:25 UTC (rev 293496)
@@ -1,3 +1,19 @@
+2022-04-26 Simon Fraser <[email protected]>
+
+ Don't flush the IOSurface CGContext when just setting ownership identity
+ https://bugs.webkit.org/show_bug.cgi?id=239800
+
+ Reviewed by Myles C. Maxfield.
+
+ ImageBufferIOSurfaceBackend::surface() has a call to flushContext(), which we don't need
+ to do if we're just getting the surface to call setOwnershipIdentity(), so use m_surface
+ directly.
+
+ This is a ~18% perf gain on the Leaves MotionMark subtest on iPhone.
+
+ * WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp:
+ (WebKit::ImageBufferShareableMappedIOSurfaceBackend::setOwnershipIdentity):
+
2022-04-26 Elliott Williams <[email protected]>
Unreviewed, reverting "[Xcode] Compute PGO profdata paths instead of searching for them at build time"
Modified: trunk/Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp (293495 => 293496)
--- trunk/Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp 2022-04-27 02:48:40 UTC (rev 293495)
+++ trunk/Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp 2022-04-27 04:49:25 UTC (rev 293496)
@@ -80,8 +80,7 @@
void ImageBufferShareableMappedIOSurfaceBackend::setOwnershipIdentity(const WebCore::ProcessIdentity& resourceOwner)
{
- ASSERT(surface());
- surface()->setOwnershipIdentity(resourceOwner);
+ m_surface->setOwnershipIdentity(resourceOwner);
}
} // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes