🎨
This commit is contained in:
parent
b900ff93e4
commit
07ccb6af2b
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue