Update PlatformCanvas to SKCanvas
This commit is contained in:
parent
37ccd34a88
commit
900001e547
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ void PrintWebViewHelper::PrintPageInternal(
|
||||||
&content_area);
|
&content_area);
|
||||||
gfx::Rect canvas_area = content_area;
|
gfx::Rect canvas_area = content_area;
|
||||||
|
|
||||||
skia::PlatformCanvas* canvas = metafile->GetVectorCanvasForNewPage(
|
SkCanvas* canvas = metafile->GetVectorCanvasForNewPage(
|
||||||
page_size, canvas_area, scale_factor);
|
page_size, canvas_area, scale_factor);
|
||||||
if (!canvas)
|
if (!canvas)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -158,7 +158,7 @@ void PrintWebViewHelper::PrintPageInternal(
|
||||||
frame->getPrintPageShrink(params.page_number);
|
frame->getPrintPageShrink(params.page_number);
|
||||||
float scale_factor = css_scale_factor * webkit_page_shrink_factor;
|
float scale_factor = css_scale_factor * webkit_page_shrink_factor;
|
||||||
|
|
||||||
skia::PlatformCanvas* canvas = metafile->GetVectorCanvasForNewPage(
|
SkCanvas* canvas = metafile->GetVectorCanvasForNewPage(
|
||||||
page_size, canvas_area, scale_factor);
|
page_size, canvas_area, scale_factor);
|
||||||
if (!canvas)
|
if (!canvas)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue