diff options
author | caryclark <caryclark@google.com> | 2016-11-17 17:28:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-17 17:28:10 -0800 |
commit | 0201377b6c4bb3b73f2564092426f3962a0bd9ed (patch) | |
tree | 0ae87fde5a65d60505df0b64f993bf990e680dfc /core/fxge/fx_dib.h | |
parent | c892d24abf5704bc795a0a1a4c5dd2356aa61f35 (diff) | |
download | pdfium-0201377b6c4bb3b73f2564092426f3962a0bd9ed.tar.xz |
fix corpus tests
All corpus tests draw reasonably well.
There are pixel differences, but no missing
features or large scale errors.
This was verified by running run_corpus_tests.py
on skiapaths and agg build dirs, then running
the skdiff tool to generate a report of the
pixel difference. For example, after running
$ ninja -C out/skia skdiff
$ ./out/skia/skdiff /repo/pdfium/out/agg/gen/pdfium/testing/corpus/ /repo/pdfium/out/skiapaths/gen/pdfium/testing/corpus/ ~/aggskiadiffs
view the report in a browser at ~/aggskiadiffs/index.html
R=dsinclair@chromium.org
BUG=skia:5973
Review-Url: https://codereview.chromium.org/2504863003
Diffstat (limited to 'core/fxge/fx_dib.h')
-rw-r--r-- | core/fxge/fx_dib.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h index c42c964bde..daf2cdf9a5 100644 --- a/core/fxge/fx_dib.h +++ b/core/fxge/fx_dib.h @@ -248,7 +248,7 @@ class CFX_DIBSource { int& src_top, const CFX_ClipRgn* pClipRgn); -#if defined _SKIA_SUPPORT_ +#if defined _SKIA_SUPPORT_ || defined _SKIA_SUPPORT_PATHS_ void DebugVerifyBitmapIsPreMultiplied(void* buffer = nullptr) const; #endif @@ -371,11 +371,20 @@ class CFX_DIBitmap : public CFX_DIBSource { bool ConvertColorScale(uint32_t forecolor, uint32_t backcolor); +#ifdef _SKIA_SUPPORT_PATHS_ + bool IsMarkedForUnPreMultiply() const { return m_bUnPreMultiply; } + + void MarkForUnPreMultiply(bool mark) { m_bUnPreMultiply = mark; } +#endif + protected: bool GetGrayData(void* pIccTransform = nullptr); uint8_t* m_pBuffer; bool m_bExtBuf; +#ifdef _SKIA_SUPPORT_PATHS_ + bool m_bUnPreMultiply; +#endif }; class CFX_DIBExtractor { |