#include "core/fpdfapi/page/cpdf_shadingpattern.h"
#include <algorithm>
#include <utility>
#include "core/fpdfapi/page/cpdf_docpagedata.h"
#include "core/fpdfapi/page/cpdf_function.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_object.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fxcrt/check.h"
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/notreached.h"
namespace {
ShadingType ToShadingType(int type) { … }
}
CPDF_ShadingPattern::CPDF_ShadingPattern(CPDF_Document* pDoc,
RetainPtr<CPDF_Object> pPatternObj,
bool bShading,
const CFX_Matrix& parentMatrix)
: … { … }
CPDF_ShadingPattern::~CPDF_ShadingPattern() = default;
CPDF_ShadingPattern* CPDF_ShadingPattern::AsShadingPattern() { … }
bool CPDF_ShadingPattern::Load() { … }
RetainPtr<const CPDF_Object> CPDF_ShadingPattern::GetShadingObject() const { … }
bool CPDF_ShadingPattern::Validate() const { … }
bool CPDF_ShadingPattern::ValidateFunctions(
uint32_t nExpectedNumFunctions,
uint32_t nExpectedNumInputs,
uint32_t nExpectedNumOutputs) const { … }