diff options
Diffstat (limited to 'gfx/skia/skia/src/opts/SkOpts_crc32.cpp')
-rw-r--r-- | gfx/skia/skia/src/opts/SkOpts_crc32.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/opts/SkOpts_crc32.cpp b/gfx/skia/skia/src/opts/SkOpts_crc32.cpp new file mode 100644 index 0000000000..5de8c39a69 --- /dev/null +++ b/gfx/skia/skia/src/opts/SkOpts_crc32.cpp @@ -0,0 +1,21 @@ +/* + * Copyright 2016 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/SkOpts.h" + +#if !defined(SK_ENABLE_OPTIMIZE_SIZE) + +#define SK_OPTS_NS crc32 +#include "src/opts/SkChecksum_opts.h" + +namespace SkOpts { + void Init_crc32() { + hash_fn = crc32::hash_fn; + } +} + +#endif // SK_ENABLE_OPTIMIZE_SIZE |