OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "SkSwizzler.h" | 8 #include "SkSwizzler.h" |
9 #include "Test.h" | 9 #include "Test.h" |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Test all possible start rows with all possible end rows | 109 // Test all possible start rows with all possible end rows |
110 for (uint32_t startRow = 0; startRow < height; startRow++) { | 110 for (uint32_t startRow = 0; startRow < height; startRow++) { |
111 for (uint32_t endRow = startRow; endRow < height; endRow
++) { | 111 for (uint32_t endRow = startRow; endRow < height; endRow
++) { |
112 | 112 |
113 // Fill with an index that we use to look up a color | 113 // Fill with an index that we use to look up a color |
114 check_fill(r, colorInfo, startRow, endRow, colorRowB
ytes, offset, | 114 check_fill(r, colorInfo, startRow, endRow, colorRowB
ytes, offset, |
115 kFillIndex, colorTable); | 115 kFillIndex, colorTable); |
116 | 116 |
117 // Fill with a color | 117 // Fill with a color |
118 check_fill(r, colorInfo, startRow, endRow, colorRowB
ytes, offset, | 118 check_fill(r, colorInfo, startRow, endRow, colorRowB
ytes, offset, |
119 kFillColor, NULL); | 119 kFillColor, nullptr); |
120 | 120 |
121 // Fill with an index | 121 // Fill with an index |
122 check_fill(r, indexInfo, startRow, endRow, indexRowB
ytes, offset, | 122 check_fill(r, indexInfo, startRow, endRow, indexRowB
ytes, offset, |
123 kFillIndex, NULL); | 123 kFillIndex, nullptr); |
124 | 124 |
125 // Fill a grayscale image | 125 // Fill a grayscale image |
126 check_fill(r, grayInfo, startRow, endRow, grayRowByt
es, offset, | 126 check_fill(r, grayInfo, startRow, endRow, grayRowByt
es, offset, |
127 kFillColor, NULL); | 127 kFillColor, nullptr); |
128 } | 128 } |
129 } | 129 } |
130 } | 130 } |
131 } | 131 } |
132 } | 132 } |
133 } | 133 } |
134 } | 134 } |
OLD | NEW |