Changeset 284833 in webkit
- Timestamp:
- Oct 25, 2021, 2:51:06 PM (5 years ago)
- Location:
- branches/safari-612-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612-branch/Source/WebCore/ChangeLog
r284832 r284833 1 2021-10-25 Null <null@apple.com> 2 3 Cherry-pick r284007. rdar://problem/84630339 4 5 Cocoa GraphicsContextGLOpenGL uses depth and stencil for pbuffers on ANGLE Metal 6 https://bugs.webkit.org/show_bug.cgi?id=231424 7 8 Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-10-12 9 Reviewed by Dean Jackson. 10 11 ANGLE Metal allocates depth and stencil buffers when a pbuffer is bound to 12 a texture via eglBindTexImage. 13 To side-step this performance issue, allocate the gl context with EGLConfig 14 that disables depth and stencil. The config is used for the video texture 15 upload context, video texture upload pbuffers as well as other pbuffers. 16 17 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 18 (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): 19 20 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284007 268f45cc-cd09-0410-ab3c-d52691b4dbfc 21 22 2021-10-12 Kimmo Kinnunen <kkinnunen@apple.com> 23 24 Cocoa GraphicsContextGLOpenGL uses depth and stencil for pbuffers on ANGLE Metal 25 https://bugs.webkit.org/show_bug.cgi?id=231424 26 27 Reviewed by Dean Jackson. 28 29 ANGLE Metal allocates depth and stencil buffers when a pbuffer is bound to 30 a texture via eglBindTexImage. 31 To side-step this performance issue, allocate the gl context with EGLConfig 32 that disables depth and stencil. The config is used for the video texture 33 upload context, video texture upload pbuffers as well as other pbuffers. 34 35 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 36 (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): 37 1 38 2021-10-25 Null <null@apple.com> 2 39 -
branches/safari-612-branch/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm
r284827 r284833 267 267 EGL_BLUE_SIZE, 8, 268 268 EGL_ALPHA_SIZE, 8, 269 EGL_DEPTH_SIZE, 0, 270 EGL_STENCIL_SIZE, 0, 269 271 EGL_NONE 270 272 };
Note:
See TracChangeset
for help on using the changeset viewer.