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

Unified Diff: printing/pdf_metafile_skia.cc

Issue 7633040: CL removing inheritance of SkDevice from PlatformDevice. Flavours of PlatformDevice classes now ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add mac changes. Created 9 years, 4 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
===================================================================
--- printing/pdf_metafile_skia.cc (revision 97282)
+++ printing/pdf_metafile_skia.cc (working copy)
@@ -70,8 +70,8 @@
pdf_device->unref(); // SkRefPtr and new both took a reference.
skia::VectorPlatformDeviceSkia* device =
new skia::VectorPlatformDeviceSkia(pdf_device.get());
- data_->current_page_ = device->PdfDevice();
- return device;
+ data_->current_page_ = pdf_device;
+ return device->GetOwningDevice();
}
bool PdfMetafileSkia::StartPage(const gfx::Size& page_size,

Powered by Google App Engine
This is Rietveld 408576698