Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: printing/pdf_metafile_skia.cc

Issue 2690583002: Make cc/paint have concrete types (Closed)
Patch Set: PaintRecord as typedef, fixup playback calls Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: printing/pdf_metafile_skia.cc
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc
index 6b548afd76b08c940044eb5ab37e40b40b13dada..beac575bc7426c1091cc682ff9abfdf6faace7d0 100644
--- a/printing/pdf_metafile_skia.cc
+++ b/printing/pdf_metafile_skia.cc
@@ -200,9 +200,9 @@ bool PdfMetafileSkia::FinishDocument() {
}
for (const Page& page : data_->pages_) {
- cc::PaintCanvas* canvas(
+ cc::PaintCanvas canvas(
doc->beginPage(page.size_.width(), page.size_.height()));
- canvas->drawPicture(page.content_);
+ canvas.drawPicture(page.content_);
doc->endPage();
}
doc->close();

Powered by Google App Engine
This is Rietveld 408576698