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 "GrDrawAtlasBatch.h" | 8 #include "GrDrawAtlasBatch.h" |
9 #include "GrBatchTest.h" | 9 #include "GrBatchTest.h" |
10 #include "SkGr.h" | 10 #include "SkGr.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 random, | 244 random, |
245 &xforms, | 245 &xforms, |
246 &texRects, | 246 &texRects, |
247 &colors, hasColors); | 247 &colors, hasColors); |
248 | 248 |
249 SkMatrix viewMatrix = GrTest::TestMatrix(random); | 249 SkMatrix viewMatrix = GrTest::TestMatrix(random); |
250 | 250 |
251 GrDrawAtlasBatch::Geometry geometry; | 251 GrDrawAtlasBatch::Geometry geometry; |
252 geometry.fColor = GrRandomColor(random); | 252 geometry.fColor = GrRandomColor(random); |
253 return GrDrawAtlasBatch::Create(geometry, viewMatrix, spriteCount, xforms.be
gin(), | 253 return GrDrawAtlasBatch::Create(geometry, viewMatrix, spriteCount, xforms.be
gin(), |
254 texRects.begin(), colors.begin()); | 254 texRects.begin(), hasColors ? colors.begin()
: nullptr); |
255 } | 255 } |
256 | 256 |
257 #endif | 257 #endif |
OLD | NEW |