Lines Matching defs:metafile
11 #include "printing/metafile.h"
35 scoped_ptr<Metafile> draft_metafile;
36 Metafile* initial_render_metafile = print_preview_context_.metafile();
55 print_preview_context_.metafile()->GetMetafileForCurrentPage());
63 NativeMetafile metafile;
64 if (!metafile.Init())
90 PrintPageInternal(page_params, canvas_size, frame, &metafile);
93 // blink::printEnd() for PDF should be called before metafile is closed.
96 metafile.FinishDocument();
98 // Get the size of the resulting metafile.
99 uint32 buf_size = metafile.GetDataSize();
110 if (!metafile.SaveToFD(fd))
135 metafile.GetData(shared_mem->memory(), buf_size);
144 // Send the rest of the pages with an invalid metafile handle.
155 Metafile* metafile) {
168 SkBaseDevice* device = metafile->StartPageForVectorCanvas(page_size,
178 MetafileSkiaWrapper::SetMetafileOnCanvas(*canvas, metafile);
193 // Done printing. Close the device context to retrieve the compiled metafile.
194 if (!metafile->FinishPage())
195 NOTREACHED() << "metafile failed";