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

Unified Diff: printing/pdf_metafile_skia.h

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 years, 9 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 | « content/renderer/render_frame_proxy.cc ('k') | printing/pdf_metafile_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_metafile_skia.h
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h
index cb69b91685746a42222e3da40aaf5d2344ff455c..5dcec1322a93cce5399d4b56265e62c15c4ef22d 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -67,6 +67,8 @@ class PRINTING_EXPORT PdfMetafileSkia : public Metafile {
bool SaveTo(base::File* file) const override;
+ bool InitFromPageDataBuffer(const char* src_buffer, size_t src_buffer_size);
+
// Return a new metafile containing just the current page in draft mode.
std::unique_ptr<PdfMetafileSkia> GetMetafileForCurrentPage(
SkiaDocumentType type);
@@ -81,6 +83,12 @@ class PRINTING_EXPORT PdfMetafileSkia : public Metafile {
const gfx::Rect& content_area,
const float& scale_factor);
+ std::unique_ptr<char[]> GetPageDataBuffer(size_t* size) const;
+
+ void ConvertPagesToPdf();
+ void FinishAllPages();
+ void GetSkp(SkWStream* stream) const;
+
private:
std::unique_ptr<PdfMetafileSkiaData> data_;
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | printing/pdf_metafile_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698