This commit is contained in:
Kevin Sawicki 2016-07-06 09:42:43 -07:00
parent b900ff93e4
commit 07ccb6af2b

View file

@ -1276,8 +1276,7 @@ void WebContents::CapturePage(mate::Arguments* args) {
if (scale > 1.0f) if (scale > 1.0f)
bitmap_size = gfx::ScaleToCeiledSize(view_size, scale); bitmap_size = gfx::ScaleToCeiledSize(view_size, scale);
host->CopyFromBackingStore( host->CopyFromBackingStore(gfx::Rect(rect.origin(), view_size),
gfx::Rect(rect.origin(), view_size),
bitmap_size, bitmap_size,
base::Bind(&OnCapturePageDone, callback), base::Bind(&OnCapturePageDone, callback),
kBGRA_8888_SkColorType); kBGRA_8888_SkColorType);