Fix cc/paint skia type mismatches

https://codereview.chromium.org/2717943002
This commit is contained in:
Aleksei Kuzmin 2017-06-17 03:20:31 +03:00
parent adddff3ee2
commit 567646e624

View file

@ -354,7 +354,7 @@ float PrintWebViewHelper::RenderPageContent(blink::WebFrame* frame,
const gfx::Rect& content_area,
double scale_factor,
blink::WebCanvas* canvas) {
SkAutoCanvasRestore auto_restore(canvas, true);
cc::PaintCanvasAutoRestore auto_restore(canvas, true);
canvas->translate((content_area.x() - canvas_area.x()) / scale_factor,
(content_area.y() - canvas_area.y()) / scale_factor);
return frame->PrintPage(page_number, canvas);