Update PlatformCanvas to SKCanvas

This commit is contained in:
Brian R. Bondy 2016-04-30 20:39:11 -04:00 committed by Cheng Zhao
parent 37ccd34a88
commit 900001e547
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;