Index: printing/pdf_metafile_skia.cc |
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc |
index f96d6c088524f3d283844583b668818d8f86298a..1fb3557611c94ecccd4c57bfeb9a1a4e86b62dbc 100644 |
--- a/printing/pdf_metafile_skia.cc |
+++ b/printing/pdf_metafile_skia.cc |
@@ -33,6 +33,7 @@ |
#endif |
namespace { |
+ |
// This struct represents all the data we need to draw and redraw this |
// page into a SkDocument. |
struct Page { |
@@ -46,11 +47,10 @@ struct Page { |
float scale_factor_; |
skia::RefPtr<SkPicture> content_; |
}; |
-} // namespace |
-static bool WriteAssetToBuffer(const SkStreamAsset* asset, |
- void* buffer, |
- size_t size) { |
+bool WriteAssetToBuffer(const SkStreamAsset* asset, |
+ void* buffer, |
+ size_t size) { |
// Calling duplicate() keeps original asset state unchanged. |
scoped_ptr<SkStreamAsset> assetCopy(asset->duplicate()); |
size_t length = assetCopy->getLength(); |
@@ -59,6 +59,8 @@ static bool WriteAssetToBuffer(const SkStreamAsset* asset, |
return (length == assetCopy->read(buffer, length)); |
} |
+} // namespace |
+ |
namespace printing { |
struct PdfMetafileSkiaData { |