// Copyright 2023 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/dib/blend.h" #include <algorithm> #include <array> #include <cmath> #include "core/fxcrt/check_op.h" #include "core/fxcrt/notreached.h" #include "core/fxge/dib/fx_dib.h" namespace fxge { namespace { constexpr std::array<const uint8_t, 256> kColorSqrt = …; } // namespace int Blend(BlendMode blend_mode, int back_color, int src_color) { … } } // namespace fxge