| Index: src/core/SkOpts.h
|
| diff --git a/src/core/SkOpts.h b/src/core/SkOpts.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..71abae5d7a57c9b8a74631675ef32a3e98e590e7
|
| --- /dev/null
|
| +++ b/src/core/SkOpts.h
|
| @@ -0,0 +1,22 @@
|
| +/*
|
| + * Copyright 2015 Google Inc.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +#ifndef SkOpts_DEFINED
|
| +#define SkOpts_DEFINED
|
| +
|
| +#include "SkTypes.h"
|
| +
|
| +namespace SkOpts {
|
| + // Call to replace pointers to portable functions with pointers to CPU-specific functions.
|
| + // Thread-safe and idempotent.
|
| + // Called by SkGraphics::Init(), and automatically #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS.
|
| + void Init();
|
| +
|
| + // (Function pointers go here).
|
| +}
|
| +
|
| +#endif//SkOpts_DEFINED
|
|
|