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

Side by Side Diff: tests/SkLinearBitmapPipelineTest.cpp

Issue 2126253002: centralize VECTORCALL as SK_VECTORCALL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typo Created 4 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 unified diff | Download patch
« no previous file with comments | « src/core/SkLinearBitmapPipeline_sample.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « src/core/SkLinearBitmapPipeline_sample.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698