| Index: printing/image_mac.cc
|
| diff --git a/printing/image_mac.cc b/printing/image_mac.cc
|
| index 7edcfd7f0a07d9dbb464a90b2e8c890c6b7fcf03..fd697736b1100ad0533437808dc618a0f2368d53 100644
|
| --- a/printing/image_mac.cc
|
| +++ b/printing/image_mac.cc
|
| @@ -10,13 +10,17 @@
|
| #include <stdint.h>
|
|
|
| #include "base/mac/scoped_cftyperef.h"
|
| -#include "printing/metafile.h"
|
| #include "printing/pdf_metafile_cg_mac.h"
|
| #include "ui/gfx/geometry/rect.h"
|
|
|
| namespace printing {
|
|
|
| -bool Image::LoadMetafile(const Metafile& metafile) {
|
| +bool Image::LoadMetafile(const void* metafile_src_buffer,
|
| + size_t metafile_src_buffer_size) {
|
| + PdfMetafileCg metafile;
|
| + if (!metafile.InitFromData(metafile_src_buffer, metafile_src_buffer_size)) {
|
| + return false;
|
| + }
|
| // The printing system uses single-page metafiles (page indexes are 1-based).
|
| const unsigned int page_number = 1;
|
| gfx::Rect rect(metafile.GetPageBounds(page_number));
|
|
|