chromium/third_party/pdfium/core/fxge/cfx_color.cpp

// Copyright 2017 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "core/fxge/cfx_color.h"

#include <algorithm>

#include "core/fxcrt/notreached.h"

// Color types are ordered by increasing number of components so we can choose
// a best color type during some conversions.
static_assert;
static_assert;
static_assert;

namespace {

bool InRange(float comp) {}

CFX_Color ConvertCMYK2GRAY(float dC, float dM, float dY, float dK) {}

CFX_Color ConvertGRAY2CMYK(float dGray) {}

CFX_Color ConvertGRAY2RGB(float dGray) {}

CFX_Color ConvertRGB2GRAY(float dR, float dG, float dB) {}

CFX_Color ConvertCMYK2RGB(float dC, float dM, float dY, float dK) {}

CFX_Color ConvertRGB2CMYK(float dR, float dG, float dB) {}

}  // namespace

CFX_Color CFX_Color::ConvertColorType(Type nConvertColorType) const {}

FX_COLORREF CFX_Color::ToFXColor(int32_t nTransparency) const {}

CFX_Color CFX_Color::operator-(float fColorSub) const {}

CFX_Color CFX_Color::operator/(float fColorDivide) const {}