chromium/third_party/blink/renderer/platform/geometry/blend.h

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

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GEOMETRY_BLEND_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GEOMETRY_BLEND_H_

#include "third_party/blink/renderer/platform/geometry/layout_unit.h"
#include "third_party/blink/renderer/platform/platform_export.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#include "ui/gfx/geometry/point_f.h"

#include <type_traits>

namespace blink {

inline int Blend(int from, int to, double progress) {}

// For unsigned types.
template <typename T>
inline T Blend(T from, T to, double progress) {}

inline double Blend(double from, double to, double progress) {}

inline float Blend(float from, float to, double progress) {}

inline LayoutUnit Blend(LayoutUnit from, LayoutUnit to, double progress) {}

inline gfx::PointF Blend(const gfx::PointF& from,
                         const gfx::PointF& to,
                         double progress) {}

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_GEOMETRY_BLEND_H_