magreenblatt wrote:Does the problem reproduce in cefclient when running with '--off-screen-rendering-enabled'?
Issue is reproducible in CefClient Application with CEF version 2840. I guess I have checked in some other Cef version. Apologies for that.
And after Debugging I found the cause.
In the commit shown here
https://bitbucket.org/chromiumembedded/cef/diff/libcef/browser/osr/render_widget_host_view_osr.cc?diff2=a60bb077a398&at=2924OnSwapCompositorFrame function has been modified which uses browserCompositor on Mac platform which calls BrowserCompositorMac::SwapCompositorFrame defined in browser_compositor_view_mac.mm. This function is resetting the root_layer bounds to the previous width and height (Corresponding commit in chromium :
https://chromium.googlesource.com/experimental/chromium/src/+/9e8481c2e211439771d0634043d2addf9fe7b4ec%5E%21/#F1 ) Prior to this, this was not getting set. It was just calling
- Code: Select all
delegated_frame_host_->SwapDelegatedFrame(output_surface_id,
std::move(frame));
After this when we get a call on WasResized function, it says width has not changed on comparing with the old_params and it does not send ViewMsg_Resize. Attaching snapshot for the issue:
- CefClient_OSR.png (91.69 KiB) Viewed 9313 times
Regards,
Aasma Garg