1b5c604d9d
Also: Add SkDeflateWStream and associated unit tests. SkPDFBitmap is a replacement for SkPDFImage. As of now, it only supports 8888 bitmaps (the most common case). SkPDFBitmap takes very little extra memory (aside from refing the bitmap's pixels), and its emitObject() does not cache any data. The SkPDFBitmap::Create function will check the canon for duplicates. This can reduce the size of the output PDF. Motivation: this gives another ~40% decrease in PDF memory overhead TODO: Support other ColorTypes and scrap SkPDFImage. BUG=skia:3030 Review URL: https://codereview.chromium.org/918813002
51 lines
2.0 KiB
Python
51 lines
2.0 KiB
Python
# Include this gypi to include all 'pdf' files
|
|
# The parent gyp/gypi file must define
|
|
# 'skia_src_path' e.g. skia/trunk/src
|
|
# 'skia_include_path' e.g. skia/trunk/include
|
|
#
|
|
# The skia build defines these in common_variables.gypi
|
|
#
|
|
{
|
|
'sources': [
|
|
'<(skia_include_path)/pdf/SkPDFDevice.h',
|
|
'<(skia_include_path)/pdf/SkPDFDocument.h',
|
|
|
|
'<(skia_src_path)/doc/SkDocument_PDF.cpp',
|
|
|
|
'<(skia_src_path)/pdf/SkPDFBitmap.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFBitmap.h',
|
|
'<(skia_src_path)/pdf/SkPDFCanon.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFCanon.h',
|
|
'<(skia_src_path)/pdf/SkPDFCatalog.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFCatalog.h',
|
|
'<(skia_src_path)/pdf/SkPDFDevice.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFDeviceFlattener.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFDeviceFlattener.h',
|
|
'<(skia_src_path)/pdf/SkPDFDocument.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFFont.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFFont.h',
|
|
'<(skia_src_path)/pdf/SkPDFFontImpl.h',
|
|
'<(skia_src_path)/pdf/SkPDFFormXObject.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFFormXObject.h',
|
|
'<(skia_src_path)/pdf/SkPDFGraphicState.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFGraphicState.h',
|
|
'<(skia_src_path)/pdf/SkPDFImage.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFImage.h',
|
|
'<(skia_src_path)/pdf/SkPDFPage.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFPage.h',
|
|
'<(skia_src_path)/pdf/SkPDFResourceDict.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFResourceDict.h',
|
|
'<(skia_src_path)/pdf/SkPDFShader.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFShader.h',
|
|
'<(skia_src_path)/pdf/SkPDFStream.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFStream.h',
|
|
'<(skia_src_path)/pdf/SkPDFTypes.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFTypes.h',
|
|
'<(skia_src_path)/pdf/SkPDFUtils.cpp',
|
|
'<(skia_src_path)/pdf/SkPDFUtils.h',
|
|
'<(skia_src_path)/pdf/SkTSet.h',
|
|
'<(skia_src_path)/pdf/SkDeflateWStream.cpp',
|
|
'<(skia_src_path)/pdf/SkDeflateWStream.h',
|
|
],
|
|
}
|