From e3f5f5d4f7d56dac0e9a59ee9cf775e5e796d2f8 Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 16 Jul 2015 12:46:24 -0700 Subject: Cleanup: Fix some misc nits in printing code. Review URL: https://codereview.chromium.org/1232783007 Cr-Commit-Position: refs/heads/master@{#339101} --- printing/pdf_metafile_skia.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'printing') diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc index f96d6c0..1fb3557 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 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 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 { -- cgit v1.1