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

Unified Diff: printing/metafile_skia_wrapper.cc

Issue 559263002: Replaced Metafile with PdfMetafileSkia in renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Sep 11 15:46:31 PDT 2014 Created 6 years, 3 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
« no previous file with comments | « printing/metafile_skia_wrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/metafile_skia_wrapper.cc
diff --git a/printing/metafile_skia_wrapper.cc b/printing/metafile_skia_wrapper.cc
index 2fddc004e12512016e478c27d9a6d936ea0c3398..3657bc12414b6972e07d571f6e699345510fce64 100644
--- a/printing/metafile_skia_wrapper.cc
+++ b/printing/metafile_skia_wrapper.cc
@@ -20,7 +20,7 @@ const char* kCustomScaleKey = "CrCustomScale";
// static
void MetafileSkiaWrapper::SetMetafileOnCanvas(const SkCanvas& canvas,
- Metafile* metafile) {
+ PdfMetafileSkia* metafile) {
skia::RefPtr<MetafileSkiaWrapper> wrapper;
if (metafile)
wrapper = skia::AdoptRef(new MetafileSkiaWrapper(metafile));
@@ -30,7 +30,8 @@ void MetafileSkiaWrapper::SetMetafileOnCanvas(const SkCanvas& canvas,
}
// static
-Metafile* MetafileSkiaWrapper::GetMetafileFromCanvas(const SkCanvas& canvas) {
+PdfMetafileSkia* MetafileSkiaWrapper::GetMetafileFromCanvas(
+ const SkCanvas& canvas) {
SkMetaData& meta = skia::getMetaData(canvas);
SkRefCnt* value;
if (!meta.findRefCnt(kMetafileKey, &value) || !value)
@@ -58,7 +59,7 @@ bool MetafileSkiaWrapper::GetCustomScaleOnCanvas(const SkCanvas& canvas,
return true;
}
-MetafileSkiaWrapper::MetafileSkiaWrapper(Metafile* metafile)
+MetafileSkiaWrapper::MetafileSkiaWrapper(PdfMetafileSkia* metafile)
: metafile_(metafile) {
}
« no previous file with comments | « printing/metafile_skia_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698