Lines Matching defs:metafile
12 #include "printing/metafile.h"
32 scoped_ptr<Metafile> draft_metafile;
33 Metafile* initial_render_metafile = print_preview_context_.metafile();
54 print_preview_context_.metafile()->GetMetafileForCurrentPage());
62 NativeMetafile metafile;
63 if (!metafile.Init())
93 &metafile,
98 // blink::printEnd() for PDF should be called before metafile is closed.
101 metafile.FinishDocument();
103 // Get the size of the resulting metafile.
104 uint32 buf_size = metafile.GetDataSize();
115 // Allocate a shared memory buffer to hold the generated metafile data.
122 if (!metafile.GetData(shared_buf.memory(), buf_size)) {
152 Metafile* metafile,
187 SkBaseDevice* device = metafile->StartPageForVectorCanvas(page_size,
197 MetafileSkiaWrapper::SetMetafileOnCanvas(*canvas, metafile);
218 // Done printing. Close the device context to retrieve the compiled metafile.
219 if (!metafile->FinishPage())
220 NOTREACHED() << "metafile failed";
224 Metafile* metafile, base::SharedMemoryHandle* shared_mem_handle) {
225 uint32 buf_size = metafile->GetDataSize();
227 // Allocate a shared memory buffer to hold the generated metafile data.
234 if (!metafile->GetData(shared_buf.memory(), buf_size)) {