WinRT has an issue with uninitialized SkNf
authorMatthew Leibowitz <mattleibow@live.com>
Sun, 7 May 2017 15:35:10 +0000 (17:35 +0200)
committerMatthew Leibowitz <mattleibow@live.com>
Sun, 7 May 2017 15:35:10 +0000 (17:35 +0200)
src/opts/SkRasterPipeline_opts.h

index 07f1e5a..89e05e1 100644 (file)
@@ -1171,7 +1171,11 @@ namespace {
     }
 
     static void run_program(void** program, size_t x, size_t n) {
+#if SK_BUILD_FOR_WINRT
+        SkNf u = SkNf();
+#else
         SkNf u;  // fastest to start uninitialized.
+#endif
 
         auto start = (Fn)load_and_increment(&program);
         while (n >= N) {