summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-05 13:11:30 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-05 13:11:30 +0000
commit9dec727ff54efb1365599dcbdf6307c92a64a9ce (patch)
treef4997a248100ca55939cfa847d0b9e923e94083f /printing
parentc6c09d400f06555f8be1005356152bb480f109ab (diff)
downloadchromium_src-9dec727ff54efb1365599dcbdf6307c92a64a9ce.zip
chromium_src-9dec727ff54efb1365599dcbdf6307c92a64a9ce.tar.gz
chromium_src-9dec727ff54efb1365599dcbdf6307c92a64a9ce.tar.bz2
Revert 91504 - Stop using deprecated factory API for SkDevice
Review URL: http://codereview.chromium.org/7273013 TBR=reed@google.com Review URL: http://codereview.chromium.org/7193040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/emf_win.cc6
-rw-r--r--printing/pdf_metafile_cairo_linux.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/printing/emf_win.cc b/printing/emf_win.cc
index 4cb8530..0f40496 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::VectorPlatformDeviceEmf::CreateDevice(page_size.width(),
- page_size.height(),
- true, hdc_);
+ return skia::VectorPlatformDeviceEmfFactory::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 af2aa5c..5102a78 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::VectorPlatformDeviceCairo::CreateDevice(
+ return skia::VectorPlatformDeviceCairoFactory::CreateDevice(
context_, page_size.width(), page_size.height(), true);
}