mac: Fix OSR scaling behavior when switching displays (fixes issue #3423)
This commit is contained in:
parent
ba12a2ed05
commit
8022d433c7
|
@ -1079,6 +1079,7 @@ void CefRenderWidgetHostViewOSR::SynchronizeVisualProperties(
|
|||
|
||||
void CefRenderWidgetHostViewOSR::OnScreenInfoChanged() {
|
||||
TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnScreenInfoChanged");
|
||||
InvalidateLocalSurfaceId();
|
||||
if (!render_widget_host_) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1232,6 +1232,7 @@ NSPoint ConvertPointFromWindowToScreen(NSWindow* window, NSPoint point) {
|
|||
}
|
||||
|
||||
- (void)viewDidChangeBackingProperties {
|
||||
[super viewDidChangeBackingProperties];
|
||||
const CGFloat device_scale_factor = [self getDeviceScaleFactor];
|
||||
|
||||
if (device_scale_factor == device_scale_factor_) {
|
||||
|
|
Loading…
Reference in New Issue