#include "core/fpdfapi/render/cpdf_docrenderdata.h"
#include <stdint.h>
#include <algorithm>
#include <array>
#include <memory>
#include <utility>
#include "core/fpdfapi/font/cpdf_type3font.h"
#include "core/fpdfapi/page/cpdf_dib.h"
#include "core/fpdfapi/page/cpdf_function.h"
#include "core/fpdfapi/page/cpdf_transferfunc.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/render/cpdf_type3cache.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fixed_size_data_vector.h"
#if BUILDFLAG(IS_WIN)
#include "core/fxge/win32/cfx_psfonttracker.h"
#endif
namespace {
const int kMaxOutputs = …;
}
CPDF_DocRenderData* CPDF_DocRenderData::FromDocument(
const CPDF_Document* pDoc) { … }
CPDF_DocRenderData::CPDF_DocRenderData() = default;
CPDF_DocRenderData::~CPDF_DocRenderData() = default;
RetainPtr<CPDF_Type3Cache> CPDF_DocRenderData::GetCachedType3(
CPDF_Type3Font* font) { … }
RetainPtr<CPDF_TransferFunc> CPDF_DocRenderData::GetTransferFunc(
RetainPtr<const CPDF_Object> obj) { … }
#if BUILDFLAG(IS_WIN)
CFX_PSFontTracker* CPDF_DocRenderData::GetPSFontTracker() {
if (!m_PSFontTracker)
m_PSFontTracker = std::make_unique<CFX_PSFontTracker>();
return m_PSFontTracker.get();
}
#endif
RetainPtr<CPDF_TransferFunc> CPDF_DocRenderData::CreateTransferFunc(
RetainPtr<const CPDF_Object> pObj) const { … }