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 "GrDrawState.h" | |
11 #include "GrInvariantOutput.h" | 10 #include "GrInvariantOutput.h" |
12 #include "gl/GrGLGeometryProcessor.h" | 11 #include "gl/GrGLGeometryProcessor.h" |
13 #include "gl/builders/GrGLProgramBuilder.h" | 12 #include "gl/builders/GrGLProgramBuilder.h" |
14 | 13 |
15 /* | 14 /* |
16 * The default Geometry Processor simply takes position and multiplies it by the
uniform view | 15 * The default Geometry Processor simply takes position and multiplies it by the
uniform view |
17 * matrix. It also leaves coverage untouched. Behind the scenes, we may add per
vertex color or | 16 * matrix. It also leaves coverage untouched. Behind the scenes, we may add per
vertex color or |
18 * local coords. | 17 * local coords. |
19 */ | 18 */ |
20 typedef GrDefaultGeoProcFactory Flag; | 19 typedef GrDefaultGeoProcFactory Flag; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 const SkMatrix& local
Matrix, | 282 const SkMatrix& local
Matrix, |
284 bool opaqueVertexColo
rs, | 283 bool opaqueVertexColo
rs, |
285 uint8_t coverage) { | 284 uint8_t coverage) { |
286 return DefaultGeoProc::Create(gpTypeFlags, | 285 return DefaultGeoProc::Create(gpTypeFlags, |
287 color, | 286 color, |
288 viewMatrix, | 287 viewMatrix, |
289 localMatrix, | 288 localMatrix, |
290 opaqueVertexColors, | 289 opaqueVertexColors, |
291 coverage); | 290 coverage); |
292 } | 291 } |
OLD | NEW |