From 0944100ac89f797714eeae0cf2875e2335ff52ee Mon Sep 17 00:00:00 2001 From: emmaleer Date: Thu, 13 Aug 2015 11:26:57 -0700 Subject: SkScaledCodec class This class does scaling by using a scanlineDecoder. getScanlines and skipScanlines are used for y sampling, the swizzler is used for x sampling this class is currently only working for png and jpeg images I will update other Codec types to work soon For SkJpegCodec to implement width wise swizzling it now uses a swizzler. I ran performance tests on this change. Here are the performance test results: https://docs.google.com/a/google.com/spreadsheets/d/1D7-Q_GXD_dI68LZO005NNvb8Wq2Ee0wEBEPG72671yw/edit?usp=sharing BUG=skia: Review URL: https://codereview.chromium.org/1260673002 --- gyp/codec.gyp | 1 + 1 file changed, 1 insertion(+) (limited to 'gyp/codec.gyp') diff --git a/gyp/codec.gyp b/gyp/codec.gyp index cc06945ce8..b34c85e7d9 100644 --- a/gyp/codec.gyp +++ b/gyp/codec.gyp @@ -47,6 +47,7 @@ '../src/codec/SkJpegUtility_codec.cpp', '../src/codec/SkMaskSwizzler.cpp', '../src/codec/SkMasks.cpp', + '../src/codec/SkScaledCodec.cpp', '../src/codec/SkScanlineDecoder.cpp', '../src/codec/SkSwizzler.cpp', '../src/codec/SkWebpCodec.cpp', -- cgit v1.2.3