Windows: Fix non x2 HiDPI OSR paint crop (issue #2299)

This commit is contained in:
Andrei Kurushin 2017-12-18 19:37:36 +00:00 committed by Marshall Greenblatt
parent 6a9a51222e
commit 56557833d9
1 changed files with 2 additions and 2 deletions

View File

@ -659,8 +659,8 @@ gfx::Size CefRenderWidgetHostViewOSR::GetRequestedRendererSize() const {
} }
gfx::Size CefRenderWidgetHostViewOSR::GetPhysicalBackingSize() const { gfx::Size CefRenderWidgetHostViewOSR::GetPhysicalBackingSize() const {
return gfx::ConvertSizeToPixel(current_device_scale_factor_, return gfx::ScaleToCeiledSize(GetRequestedRendererSize(),
GetRequestedRendererSize()); current_device_scale_factor_);
} }
void CefRenderWidgetHostViewOSR::CopyFromSurface( void CefRenderWidgetHostViewOSR::CopyFromSurface(