diff --git a/libcef/browser/osr/render_widget_host_view_osr.cc b/libcef/browser/osr/render_widget_host_view_osr.cc index 578156a5f..77e644793 100644 --- a/libcef/browser/osr/render_widget_host_view_osr.cc +++ b/libcef/browser/osr/render_widget_host_view_osr.cc @@ -1399,8 +1399,8 @@ void CefRenderWidgetHostViewOSR::UpdateFrameRate() { } gfx::Size CefRenderWidgetHostViewOSR::SizeInPixels() { - return gfx::ConvertSizeToPixel(current_device_scale_factor_, - GetViewBounds().size()); + return gfx::ScaleToCeiledSize(GetViewBounds().size(), + current_device_scale_factor_); } #if defined(OS_MACOSX)