| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <array> | 9 #include <array> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 } | 109 } |
| 110 | 110 |
| 111 template <typename XTiler, typename YTiler> | 111 template <typename XTiler, typename YTiler> |
| 112 static bool compare_tiler_case( | 112 static bool compare_tiler_case( |
| 113 XTiler& xTiler, YTiler& yTiler, Span span, skiatest::Reporter* reporter) { | 113 XTiler& xTiler, YTiler& yTiler, Span span, skiatest::Reporter* reporter) { |
| 114 Span originalSpan = span; | 114 Span originalSpan = span; |
| 115 std::vector<SkPoint> listPoints; | 115 std::vector<SkPoint> listPoints; |
| 116 std::vector<SkPoint> spanPoints; | 116 std::vector<SkPoint> spanPoints; |
| 117 struct Sink { | 117 struct Sink { |
| 118 void VECTORCALL pointListFew(int n, Sk4s xs, Sk4s ys) { | 118 void SK_VECTORCALL pointListFew(int n, Sk4s xs, Sk4s ys) { |
| 119 SkASSERT(0 < n && n < 4); | 119 SkASSERT(0 < n && n < 4); |
| 120 if (n >= 1) storePoint({xs[0], ys[0]}); | 120 if (n >= 1) storePoint({xs[0], ys[0]}); |
| 121 if (n >= 2) storePoint({xs[1], ys[1]}); | 121 if (n >= 2) storePoint({xs[1], ys[1]}); |
| 122 if (n >= 3) storePoint({xs[2], ys[2]}); | 122 if (n >= 3) storePoint({xs[2], ys[2]}); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void VECTORCALL pointList4(Sk4s xs, Sk4s ys) { | 125 void SK_VECTORCALL pointList4(Sk4s xs, Sk4s ys) { |
| 126 storePoint({xs[0], ys[0]}); | 126 storePoint({xs[0], ys[0]}); |
| 127 storePoint({xs[1], ys[1]}); | 127 storePoint({xs[1], ys[1]}); |
| 128 storePoint({xs[2], ys[2]}); | 128 storePoint({xs[2], ys[2]}); |
| 129 storePoint({xs[3], ys[3]}); | 129 storePoint({xs[3], ys[3]}); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void pointSpan(Span span) { | 132 void pointSpan(Span span) { |
| 133 span_fallback(span, this); | 133 span_fallback(span, this); |
| 134 } | 134 } |
| 135 | 135 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 DEF_TEST(LBPStrategyRepeatTile, reporter) { | 248 DEF_TEST(LBPStrategyRepeatTile, reporter) { |
| 249 #if 0 | 249 #if 0 |
| 250 RepeatStrategy tiler{SkSize::Make(3, 1)}; | 250 RepeatStrategy tiler{SkSize::Make(3, 1)}; |
| 251 Span span{SkPoint::Make(-5, -5), 20 * 2.1f, 100}; | 251 Span span{SkPoint::Make(-5, -5), 20 * 2.1f, 100}; |
| 252 compare_tiler_case<RepeatStrategy>(tiler, span, reporter); | 252 compare_tiler_case<RepeatStrategy>(tiler, span, reporter); |
| 253 #else | 253 #else |
| 254 test_tiler<XRepeatStrategy, YRepeatStrategy>(reporter); | 254 test_tiler<XRepeatStrategy, YRepeatStrategy>(reporter); |
| 255 #endif | 255 #endif |
| 256 } | 256 } |
| 257 */ | 257 */ |
| OLD | NEW |