Lines Matching defs:metafile
13 #include "printing/metafile.h"
37 scoped_ptr<Metafile> draft_metafile;
38 Metafile* initial_render_metafile = print_preview_context_.metafile();
57 print_preview_context_.metafile()->GetMetafileForCurrentPage());
65 NativeMetafile metafile;
66 if (!metafile.Init())
92 PrintPageInternal(page_params, canvas_size, frame, &metafile);
95 // blink::printEnd() for PDF should be called before metafile is closed.
98 metafile.FinishDocument();
100 // Get the size of the resulting metafile.
101 uint32 buf_size = metafile.GetDataSize();
112 if (!metafile.SaveToFD(fd))
137 metafile.GetData(shared_mem->memory(), buf_size);
146 // Send the rest of the pages with an invalid metafile handle.
157 Metafile* metafile) {
170 SkBaseDevice* device = metafile->StartPageForVectorCanvas(page_size,
180 MetafileSkiaWrapper::SetMetafileOnCanvas(*canvas, metafile);
195 // Done printing. Close the device context to retrieve the compiled metafile.
196 if (!metafile->FinishPage())
197 NOTREACHED() << "metafile failed";