#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "skia/ext/convolver.h"
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <algorithm>
#include <numeric>
#include <vector>
#include "base/logging.h"
#include "base/rand_util.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColorPriv.h"
#include "third_party/skia/include/core/SkRect.h"
#include "third_party/skia/include/core/SkTypes.h"
namespace skia {
namespace {
void FillImpulseFilter(int num_entries, ConvolutionFilter1D* filter) { … }
void TestImpulseConvolution(const unsigned char* data, int width, int height) { … }
void FillBoxFilter(int size, ConvolutionFilter1D* filter) { … }
}
TEST(Convolver, Impulse) { … }
TEST(Convolver, Halve) { … }
TEST(Convolver, AddFilter) { … }
void VerifySIMD(unsigned int source_width,
unsigned int source_height,
unsigned int dest_width,
unsigned int dest_height) { … }
TEST(Convolver, VerifySIMDEdgeCases) { … }
TEST(Convolver, VerifySIMDPrecision) { … }
TEST(Convolver, SeparableSingleConvolution) { … }
TEST(Convolver, SeparableSingleConvolutionEdges) { … }
TEST(Convolver, SetUpGaussianConvolutionFilter) { … }
}