Index: core/fpdfapi/fpdf_page/fpdf_page_func.cpp |
diff --git a/core/fpdfapi/fpdf_page/fpdf_page_func.cpp b/core/fpdfapi/fpdf_page/fpdf_page_func.cpp |
index 96aad6d87fed1d7d2e01fdde62e3515737752733..f678a1336d099ffd49f22e303756f0f3667e0026 100644 |
--- a/core/fpdfapi/fpdf_page/fpdf_page_func.cpp |
+++ b/core/fpdfapi/fpdf_page/fpdf_page_func.cpp |
@@ -694,20 +694,7 @@ FX_BOOL CPDF_PSFunc::v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const { |
return TRUE; |
} |
-class CPDF_ExpIntFunc : public CPDF_Function { |
- public: |
- CPDF_ExpIntFunc(); |
- ~CPDF_ExpIntFunc() override; |
- |
- // CPDF_Function |
- FX_BOOL v_Init(CPDF_Object* pObj) override; |
- FX_BOOL v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const override; |
- |
- FX_FLOAT m_Exponent; |
- FX_FLOAT* m_pBeginValues; |
- FX_FLOAT* m_pEndValues; |
- int m_nOrigOutputs; |
-}; |
+} // namespace |
CPDF_ExpIntFunc::CPDF_ExpIntFunc() { |
m_pBeginValues = NULL; |
@@ -755,22 +742,6 @@ FX_BOOL CPDF_ExpIntFunc::v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const { |
return TRUE; |
} |
-class CPDF_StitchFunc : public CPDF_Function { |
- public: |
- CPDF_StitchFunc(); |
- ~CPDF_StitchFunc() override; |
- |
- // CPDF_Function |
- FX_BOOL v_Init(CPDF_Object* pObj) override; |
- FX_BOOL v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const override; |
- |
- std::vector<CPDF_Function*> m_pSubFunctions; |
- FX_FLOAT* m_pBounds; |
- FX_FLOAT* m_pEncode; |
- |
- static const int kRequiredNumInputs = 1; |
-}; |
- |
CPDF_StitchFunc::CPDF_StitchFunc() { |
m_pBounds = NULL; |
m_pEncode = NULL; |
@@ -859,8 +830,6 @@ FX_BOOL CPDF_StitchFunc::v_Call(FX_FLOAT* inputs, FX_FLOAT* outputs) const { |
return TRUE; |
} |
-} // namespace |
- |
CPDF_Function* CPDF_Function::Load(CPDF_Object* pFuncObj) { |
if (!pFuncObj) { |
return NULL; |
@@ -889,6 +858,7 @@ CPDF_Function* CPDF_Function::Load(CPDF_Object* pFuncObj) { |
delete pFunc; |
return NULL; |
} |
+ pFunc->m_nType = type; |
Tom Sepez
2016/03/24 18:07:07
Shouldn't the ctors of the various function sub-cl
caryclark
2016/03/25 20:47:55
Done.
|
return pFunc; |
} |
CPDF_Function::CPDF_Function() { |