X11 and Ozone: Move initialization to DWTHPlatform
This CL moves the initialization of the X11Window aka PlatformWindow to the DWTHPlatform and let the WTHPlatform to own the window instead. Also, instead of storing of XID in open_windows_, we store AcceleratedWidget now, which is ok as XID and AcceleratedWidget have the same type and it has already been used around the code. In the follow up CLs, I will start moving all the other codes from DWTHX11 and add extend the existing PlatformWindow interface in order to be able stop accessing the XWindow directly from the DWTHX11. Also, AdjustSize and GetRootTransform have been moved to DWTHPlatform and declared as protected so that DWTHX11 could access them. What is more, the ToPixelRect and ToDIPRect have been removed from DWTHX11 as the DWTHPlatform has already had those methods. Bug: 990756 Change-Id: I077773fe3154d12696dcbfb606bb3eb3122c0936 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1769442 Commit-Queue: Maksim Sisov <msisov@igalia.com> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/master@{#693093}
Showing
This diff is collapsed.
Please register or sign in to comment