Closed Bug 1288860 Opened 3 years ago Closed 3 years ago
Widget instead of ns IWidget in GLContext Provider
Update the GLContextProvider interface to take a CompositorWidget instead of nsIWidget. For now they will just use widget->RealWidget(), but eventually they can be updated to support out of process compositing on a per platform basis. This allows OGLCompositor to remove its dependency on RealWidget().
There are other dependencies on CreateForWindow besides Compositors, and so instead I've added a CreateForCompositorWidget method to GLContextProvider. Currently this just dispatchs to CreateForWindow, and uses RealWidget() on all platforms. But this will allow us to remove dependencies on RealWidget() for some platforms, such as when we use X11 and GLX.
Attachment #8774505 - Flags: review?(jmuizelaar)
Attachment #8774505 - Flags: review?(jmuizelaar) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/a34d250bea8e Change GLContextProvider to use CompositorWidget. r=jrmuizel
You need to log in before you can comment on or make changes to this bug.