RESOLVED FIXED 219487
IPC should support non-byte aligned data references
https://bugs.webkit.org/show_bug.cgi?id=219487
Summary IPC should support non-byte aligned data references
Kimmo Kinnunen
Reported 2020-12-03 03:49:41 PST
IPC should support non-byte aligned data references This is needed to efficiently pass arrays of floats and ints in the WebGL GPU Process implementation
Attachments
Patch (84.49 KB, patch)
2020-12-03 04:49 PST, Kimmo Kinnunen
no flags
Patch (83.11 KB, patch)
2020-12-03 04:52 PST, Kimmo Kinnunen
no flags
Patch (82.51 KB, patch)
2020-12-08 22:46 PST, Kimmo Kinnunen
no flags
Patch (82.53 KB, patch)
2020-12-08 22:47 PST, Kimmo Kinnunen
no flags
Kimmo Kinnunen
Comment 1 2020-12-03 04:49:36 PST
Kimmo Kinnunen
Comment 2 2020-12-03 04:52:17 PST
Peng Liu
Comment 3 2020-12-07 11:49:19 PST
Comment on attachment 415294 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415294&action=review > Source/WebKit/Platform/IPC/ArrayReference.h:76 > + size_t m_size { }; const T* m_data { nullptr }; size_t m_size { 0 }; > Source/WebKit/Platform/IPC/ArrayReference.h:117 > + const T* m_data { }; const T* m_data { nullptr };
Chris Dumez
Comment 4 2020-12-08 12:12:41 PST
Comment on attachment 415294 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415294&action=review r=me with nits. > Source/WebKit/ChangeLog:10 > + size is determined run-time. *at* run-time > Source/WebKit/ChangeLog:17 > + DataReference or ArrayReference, as a synchronized call return value. synchronized -> synchronous IPC > Source/WebKit/GPUProcess/media/RemoteMediaResourceManager.h:33 > + I don't think we usually use a blank line in such cases. > Source/WebKit/GPUProcess/media/RemoteSourceBufferProxy.h:34 > + ditto. > Source/WebKit/GPUProcess/webrtc/LibWebRTCCodecsProxy.h:34 > + ditto. > Source/WebKit/Platform/IPC/ArrayReference.h:2 > + * Copyright (C) 2010 Apple Inc. All rights reserved. 2010-2020 >> Source/WebKit/Platform/IPC/ArrayReference.h:76 >> + size_t m_size { }; > > const T* m_data { nullptr }; > size_t m_size { 0 }; Agreed. >> Source/WebKit/Platform/IPC/ArrayReference.h:117 >> + const T* m_data { }; > > const T* m_data { nullptr }; Agreed. > Source/WebKit/WebProcess/Inspector/WebInspectorUIExtensionController.cpp:43 > + WebCore::Page* page = inspectorFrontend.frontendPage(); auto*
Kimmo Kinnunen
Comment 5 2020-12-08 22:46:11 PST
Kimmo Kinnunen
Comment 6 2020-12-08 22:47:31 PST
EWS
Comment 7 2020-12-08 23:51:46 PST
Committed r270573: <https://trac.webkit.org/changeset/270573> All reviewed patches have been landed. Closing bug and clearing flags on attachment 415718 [details].
Radar WebKit Bug Importer
Comment 8 2020-12-08 23:52:19 PST
Ryosuke Niwa
Comment 9 2020-12-09 01:25:52 PST
This patch broke iOS builds (Apple internal builds).
Ryosuke Niwa
Comment 10 2020-12-09 01:44:15 PST
(In reply to Ryosuke Niwa from comment #9) > This patch broke iOS builds (Apple internal builds). Fixed in http://trac.webkit.org/r270576
Kimmo Kinnunen
Comment 11 2020-12-09 01:46:37 PST
Thanks, sorry!
Note You need to log in before you can comment on or make changes to this bug.