aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkOpts.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-07-27 10:52:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-27 10:52:33 -0700
commitce2c5055cee5d5d3c9fc84c1b3eeed4b4d84a827 (patch)
treeb6d84fb6e8d3b3911cc6b996f858e0c51fcd188d /src/core/SkOpts.h
parent9a5d1ab54d52a912bb3ac9f74ee01bba079639e5 (diff)
Lay groundwork for SkOpts.
This doesn't really do anything yet. It's just the CPU detection code, skeleton new .cpp files, and a few little .gyp tweaks. BUG=skia:4117 Review URL: https://codereview.chromium.org/1255193002
Diffstat (limited to 'src/core/SkOpts.h')
-rw-r--r--src/core/SkOpts.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/SkOpts.h b/src/core/SkOpts.h
new file mode 100644
index 0000000000..c6eab8df88
--- /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 {
+ // Called by SkGraphics::Init().
+ // It's not thread safe, but it's fine to call more than once.
+ // If Init() were somehow not called, that'd also be fine: you'll get portable fallbacks.
+ void Init();
+
+ // (Function pointers go here).
+}
+
+#endif//SkOpts_DEFINED