| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2013 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #ifndef GrGLPathProcessor_DEFINED | |
| 9 #define GrGLPathProcessor_DEFINED | |
| 10 | |
| 11 #include "GrGLPrimitiveProcessor.h" | |
| 12 | |
| 13 class GrPathProcessor; | |
| 14 class GrGLPathRendering; | |
| 15 class GrGLGpu; | |
| 16 | |
| 17 class GrGLPathProcessor : public GrGLPrimitiveProcessor { | |
| 18 public: | |
| 19 GrGLPathProcessor(); | |
| 20 | |
| 21 static void GenKey(const GrPathProcessor&, | |
| 22 const GrGLSLCaps&, | |
| 23 GrProcessorKeyBuilder* b); | |
| 24 | |
| 25 void emitCode(EmitArgs&) override; | |
| 26 | |
| 27 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*); | |
| 28 | |
| 29 void setData(const GrGLProgramDataManager&, const GrPrimitiveProcessor&) ove
rride; | |
| 30 | |
| 31 void setTransformData(const GrPrimitiveProcessor&, | |
| 32 const GrGLProgramDataManager&, | |
| 33 int index, | |
| 34 const SkTArray<const GrCoordTransform*, true>& transfo
rms) override; | |
| 35 | |
| 36 private: | |
| 37 UniformHandle fColorUniform; | |
| 38 GrColor fColor; | |
| 39 | |
| 40 typedef GrGLPrimitiveProcessor INHERITED; | |
| 41 }; | |
| 42 | |
| 43 #endif | |
| OLD | NEW |