xref: /aosp_15_r20/external/pdfium/core/fpdfapi/page/cpdf_basedcs.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2021 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #include "core/fpdfapi/page/cpdf_basedcs.h"
8 
CPDF_BasedCS(Family family)9 CPDF_BasedCS::CPDF_BasedCS(Family family) : CPDF_ColorSpace(family) {}
10 
11 CPDF_BasedCS::~CPDF_BasedCS() = default;
12 
EnableStdConversion(bool bEnabled)13 void CPDF_BasedCS::EnableStdConversion(bool bEnabled) {
14   CPDF_ColorSpace::EnableStdConversion(bEnabled);
15   if (m_pBaseCS)
16     m_pBaseCS->EnableStdConversion(bEnabled);
17 }
18