Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: src/core/SkOpts.cpp

Issue 1264543006: Port SkXfermode opts to SkOpts.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/Sk4pxXfermode.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkOpts.cpp
diff --git a/src/core/SkOpts.cpp b/src/core/SkOpts.cpp
index 45715a5c1518ec69192e38fc1829bf092665751f..c833f19c819192b768b13d22f69e0fbad4a23ea3 100644
--- a/src/core/SkOpts.cpp
+++ b/src/core/SkOpts.cpp
@@ -7,6 +7,7 @@
#include "SkOnce.h"
#include "SkOpts.h"
+#include "SkXfermode_opts.h"
#if defined(SK_CPU_X86)
#if defined(SK_BUILD_FOR_WIN32)
@@ -41,10 +42,10 @@ static void memsetT(T dst[], T val, int n) { while (n --> 0) { *dst++ = val; } }
namespace SkOpts {
// Define default function pointer values here...
- decltype(rsqrt) rsqrt = portable::rsqrt;
- decltype(memset16) memset16 = portable::memsetT<uint16_t>;
- decltype(memset32) memset32 = portable::memsetT<uint32_t>;
-
+ decltype(rsqrt) rsqrt = portable::rsqrt;
+ decltype(memset16) memset16 = portable::memsetT<uint16_t>;
+ decltype(memset32) memset32 = portable::memsetT<uint32_t>;
+ decltype(create_xfermode) create_xfermode = SkCreate4pxXfermode;
// Each Init_foo() is defined in src/opts/SkOpts_foo.cpp.
void Init_sse2();
« no previous file with comments | « src/core/Sk4pxXfermode.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698