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

Unified Diff: printing/metafile_skia_wrapper.h

Issue 2518443002: Experimetal copy of https://codereview.chromium.org/2512783002/ (Closed)
Patch Set: '' Created 4 years, 1 month 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 | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | printing/metafile_skia_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/metafile_skia_wrapper.h
diff --git a/printing/metafile_skia_wrapper.h b/printing/metafile_skia_wrapper.h
index 6236e85a4c4c5e372009b7c237b94c01648212eb..d09f3a52ce4676aad3d51d4a253777fb17543122 100644
--- a/printing/metafile_skia_wrapper.h
+++ b/printing/metafile_skia_wrapper.h
@@ -23,7 +23,9 @@ class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt {
static void SetMetafileOnCanvas(const SkCanvas& canvas,
PdfMetafileSkia* metafile);
- static PdfMetafileSkia* GetMetafileFromCanvas(const SkCanvas& canvas);
+ static sk_sp<MetafileSkiaWrapper> RefFromCanvas(const SkCanvas& canvas);
+
+ PdfMetafileSkia* metafile() const { return metafile_; }
private:
explicit MetafileSkiaWrapper(PdfMetafileSkia* metafile);
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | printing/metafile_skia_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698