diff options
author | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-05 12:41:29 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-05 12:41:29 +0000 |
commit | c6c09d400f06555f8be1005356152bb480f109ab (patch) | |
tree | 3f5f13a9512624c40d037050dc3a93fecfc3e8b4 /printing | |
parent | eeba5376ef0501077c43cd85274a770c0f76b54a (diff) | |
download | chromium_src-c6c09d400f06555f8be1005356152bb480f109ab.zip chromium_src-c6c09d400f06555f8be1005356152bb480f109ab.tar.gz chromium_src-c6c09d400f06555f8be1005356152bb480f109ab.tar.bz2 |
Stop using deprecated factory API for SkDevice
Review URL: http://codereview.chromium.org/7273013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/emf_win.cc | 6 | ||||
-rw-r--r-- | printing/pdf_metafile_cairo_linux.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/printing/emf_win.cc b/printing/emf_win.cc index 0f40496..4cb8530 100644 --- a/printing/emf_win.cc +++ b/printing/emf_win.cc @@ -409,9 +409,9 @@ SkDevice* Emf::StartPageForVectorCanvas( if (!StartPage(page_size, content_area, scale_factor)) return NULL; - return skia::VectorPlatformDeviceEmfFactory::CreateDevice(page_size.width(), - page_size.height(), - true, hdc_); + return skia::VectorPlatformDeviceEmf::CreateDevice(page_size.width(), + page_size.height(), + true, hdc_); } bool Emf::StartPage(const gfx::Size& /*page_size*/, diff --git a/printing/pdf_metafile_cairo_linux.cc b/printing/pdf_metafile_cairo_linux.cc index 5102a78..af2aa5c 100644 --- a/printing/pdf_metafile_cairo_linux.cc +++ b/printing/pdf_metafile_cairo_linux.cc @@ -124,7 +124,7 @@ SkDevice* PdfMetafileCairo::StartPageForVectorCanvas( if (!StartPage(page_size, content_area, scale_factor)) return NULL; - return skia::VectorPlatformDeviceCairoFactory::CreateDevice( + return skia::VectorPlatformDeviceCairo::CreateDevice( context_, page_size.width(), page_size.height(), true); } |