GetNativeScreen -> GetScreen

This commit is contained in:
Brian R. Bondy 2016-04-27 13:42:10 -04:00 committed by Cheng Zhao
parent f418ac5b5d
commit 732936713a
4 changed files with 5 additions and 5 deletions

View file

@ -318,9 +318,9 @@ void NativeWindow::CapturePage(const gfx::Rect& rect,
// current system, increase the requested bitmap size to capture it all.
gfx::Size bitmap_size = view_size;
const gfx::NativeView native_view = view->GetNativeView();
gfx::Screen* const screen = gfx::Screen::GetScreenFor(native_view);
const float scale =
screen->GetDisplayNearestWindow(native_view).device_scale_factor();
gfx::Screen::GetScreen()->GetDisplayNearestWindow(native_view)
.device_scale_factor();
if (scale > 1.0f)
bitmap_size = gfx::ScaleToCeiledSize(view_size, scale);