OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrDefaultGeoProcFactory.h" | 8 #include "GrDefaultGeoProcFactory.h" |
9 | 9 |
10 #include "GrInvariantOutput.h" | 10 #include "GrInvariantOutput.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 223 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
224 | 224 |
225 typedef GrGeometryProcessor INHERITED; | 225 typedef GrGeometryProcessor INHERITED; |
226 }; | 226 }; |
227 | 227 |
228 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(DefaultGeoProc); | 228 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(DefaultGeoProc); |
229 | 229 |
230 GrGeometryProcessor* DefaultGeoProc::TestCreate(SkRandom* random, | 230 GrGeometryProcessor* DefaultGeoProc::TestCreate(SkRandom* random, |
231 GrContext*, | 231 GrContext*, |
232 const GrDrawTargetCaps& caps, | 232 const GrCaps& caps, |
233 GrTexture*[]) { | 233 GrTexture*[]) { |
234 uint32_t flags = 0; | 234 uint32_t flags = 0; |
235 if (random->nextBool()) { | 235 if (random->nextBool()) { |
236 flags |= GrDefaultGeoProcFactory::kColor_GPType; | 236 flags |= GrDefaultGeoProcFactory::kColor_GPType; |
237 } | 237 } |
238 if (random->nextBool()) { | 238 if (random->nextBool()) { |
239 flags |= GrDefaultGeoProcFactory::kCoverage_GPType; | 239 flags |= GrDefaultGeoProcFactory::kCoverage_GPType; |
240 } | 240 } |
241 if (random->nextBool()) { | 241 if (random->nextBool()) { |
242 flags |= GrDefaultGeoProcFactory::kLocalCoord_GPType; | 242 flags |= GrDefaultGeoProcFactory::kLocalCoord_GPType; |
(...skipping 16 matching lines...) Expand all Loading... |
259 const SkMatrix& local
Matrix, | 259 const SkMatrix& local
Matrix, |
260 uint8_t coverage) { | 260 uint8_t coverage) { |
261 return DefaultGeoProc::Create(gpTypeFlags, | 261 return DefaultGeoProc::Create(gpTypeFlags, |
262 color, | 262 color, |
263 viewMatrix, | 263 viewMatrix, |
264 localMatrix, | 264 localMatrix, |
265 usesLocalCoords, | 265 usesLocalCoords, |
266 coverageIgnored, | 266 coverageIgnored, |
267 coverage); | 267 coverage); |
268 } | 268 } |
OLD | NEW |