RESOLVED FIXED 223082
Shutdown ANGLE on GPU process when last WebGL context is destroyed
https://bugs.webkit.org/show_bug.cgi?id=223082
Summary Shutdown ANGLE on GPU process when last WebGL context is destroyed
Kimmo Kinnunen
Reported 2021-03-11 12:05:13 PST
Shutdown ANGLE on GPU process when last WebGL context is destroyed
Attachments
Patch (15.79 KB, patch)
2021-03-12 07:23 PST, Kimmo Kinnunen
ews-feeder: commit-queue-
Patch (21.83 KB, patch)
2021-03-12 07:27 PST, Kimmo Kinnunen
ews-feeder: commit-queue-
Patch (21.85 KB, patch)
2021-03-12 07:59 PST, Kimmo Kinnunen
no flags
Patch (21.94 KB, patch)
2021-03-12 10:42 PST, Kimmo Kinnunen
no flags
Kimmo Kinnunen
Comment 1 2021-03-12 07:23:24 PST
Kimmo Kinnunen
Comment 2 2021-03-12 07:27:59 PST
Kimmo Kinnunen
Comment 3 2021-03-12 07:59:17 PST
Kimmo Kinnunen
Comment 4 2021-03-12 10:42:55 PST
Kenneth Russell
Comment 5 2021-03-12 17:17:02 PST
Comment on attachment 423062 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423062&action=review Looks good. The retain/release code looks correct to me. A few small points; r+ though. > Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLEEGLUtilities.h:2 > + * Copyright (C) 2020 Apple Inc. All rights reserved. 2021? > Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.cpp:55 > +static constexpr Seconds dispatchReleaseAllResourcesIfUnusedTimeout = 0.2_s; This feels like a short timeout to me. Consider bumping it up, maybe even to 1s or so. > Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.cpp:56 > +static unsigned remoteGraphicsContextCount; Guaranteed to be zero-initialized?
Darin Adler
Comment 6 2021-03-12 17:44:59 PST
Comment on attachment 423062 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423062&action=review >> Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.cpp:56 >> +static unsigned remoteGraphicsContextCount; > > Guaranteed to be zero-initialized? Yes, globals like this are guaranteed to be zero-initialized by the C and C++ standards.
Yusuke Suzuki
Comment 7 2021-03-12 21:44:20 PST
Internal memory benchmark observed 0.8-1.5% progression with this change.
Radar WebKit Bug Importer
Comment 8 2021-03-15 12:59:30 PDT
EWS
Comment 9 2021-03-17 04:47:52 PDT
Committed r274557: <https://commits.webkit.org/r274557> All reviewed patches have been landed. Closing bug and clearing flags on attachment 423062 [details].
Note You need to log in before you can comment on or make changes to this bug.