mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
aebc388fb6
Now that virtual buffers have to render across processes, we want to eliminate as many cross-process calls as possible. This includes QueryInterface calls, since buffers query for several interfaces on every node they visit. To avoid these cross-process QI calls, we include interfaces clients are likely to request in the handler payload. This way, they get marshaled in the single call used to retrieve the object. This patch does the following: 1. Passes the interceptor when building the payload. We need this so we can get interceptors for other interfaces. 2. Splits the payload into two main parts: a static part and a dynamic part. The (new) static part contains the interface pointers. The dynamic part contains the rest. This is necessary because the refresh call cannot pass the interceptor, but the interceptor is needed to build the static part. Also, re-building the static part is pointless when refreshing. 3. Includes the interface pointers in the payload (BuildStaticIA2Data). The pointers also have to be cleaned up after marshaling. 4. Releases the interface pointers in the handler after the payload is received. We do this because they're aggregated by the proxy manager as they're unmarshaled. MozReview-Commit-ID: 6VRLMNScgwW --HG-- extra : rebase_source : 249589643b7a69e870962ea55a44849bf03a2693 |
||
---|---|---|
.. | ||
handler | ||
typelib | ||
COMPtrTypes.cpp | ||
COMPtrTypes.h | ||
DocAccessibleChild.cpp | ||
DocAccessibleChild.h | ||
HandlerProvider.cpp | ||
HandlerProvider.h | ||
IAccessible32.manifest | ||
IAccessible64.manifest | ||
moz.build | ||
PDocAccessible.ipdl | ||
PlatformChild.cpp | ||
PlatformChild.h | ||
ProxyAccessible.cpp | ||
ProxyAccessible.h |