diff options
author | npm <npm@chromium.org> | 2016-11-21 07:28:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-21 07:28:43 -0800 |
commit | ca5300a2cb1332dbdcf877653658910ccdad5326 (patch) | |
tree | 0cbffc8e05edb58171951a984e1b029b7f9aff38 /core/fpdfapi/render/cpdf_renderstatus.cpp | |
parent | 88cb0a32586cae4d00654c679dbb41fa0133c3e5 (diff) | |
download | pdfium-ca5300a2cb1332dbdcf877653658910ccdad5326.tar.xz |
Continue splitting up render_int
Moved CPDF_ImageLoader, CPDF_ImageLoaderHandle, and CPDF_TransferFunc
Review-Url: https://codereview.chromium.org/2518553002
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_renderstatus.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp index d9f2a82276..7c389ef37c 100644 --- a/core/fpdfapi/render/cpdf_renderstatus.cpp +++ b/core/fpdfapi/render/cpdf_renderstatus.cpp @@ -38,6 +38,7 @@ #include "core/fpdfapi/render/cpdf_rendercontext.h" #include "core/fpdfapi/render/cpdf_renderoptions.h" #include "core/fpdfapi/render/cpdf_textrenderer.h" +#include "core/fpdfapi/render/cpdf_transferfunc.h" #include "core/fpdfapi/render/cpdf_type3cache.h" #include "core/fpdfapi/render/render_int.h" #include "core/fpdfdoc/cpdf_occontext.h" @@ -895,6 +896,16 @@ std::unique_ptr<CFX_DIBitmap> DrawPatternBitmap( return pBitmap; } +bool IsAvailableMatrix(const CFX_Matrix& matrix) { + if (matrix.a == 0 || matrix.d == 0) + return matrix.b != 0 && matrix.c != 0; + + if (matrix.b == 0 || matrix.c == 0) + return matrix.a != 0 && matrix.d != 0; + + return true; +} + } // namespace // static @@ -1219,16 +1230,6 @@ bool CPDF_RenderStatus::ProcessForm(const CPDF_FormObject* pFormObj, return true; } -bool IsAvailableMatrix(const CFX_Matrix& matrix) { - if (matrix.a == 0 || matrix.d == 0) { - return matrix.b != 0 && matrix.c != 0; - } - if (matrix.b == 0 || matrix.c == 0) { - return matrix.a != 0 && matrix.d != 0; - } - return true; -} - bool CPDF_RenderStatus::ProcessPath(CPDF_PathObject* pPathObj, const CFX_Matrix* pObj2Device) { int FillType = pPathObj->m_FillType; |