1 /* 2 * Copyright 2016 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "src/core/SkOpts.h" 9 10 #if !defined(SK_ENABLE_OPTIMIZE_SIZE) 11 12 #define SK_OPTS_NS crc32 13 #include "src/opts/SkChecksum_opts.h" 14 15 namespace SkOpts { Init_crc32()16 void Init_crc32() { 17 hash_fn = crc32::hash_fn; 18 } 19 } 20 21 #endif // SK_ENABLE_OPTIMIZE_SIZE 22