/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/core/SkGaussFilter.h" #include "include/private/base/SkAssert.h" #include <cmath> // The value when we can stop expanding the filter. The spec implies that 3% is acceptable, but // we just use 1%. static constexpr double kGoodEnough = …; // Normalize the values of gauss to 1.0, and make sure they add to one. // NB if n == 1, then this will force gauss[0] == 1. static void normalize(int n, double* gauss) { … } static int calculate_bessel_factors(double sigma, double *gauss) { … } SkGaussFilter::SkGaussFilter(double sigma) { … }