| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #ifndef GrGLGeometryProcessor_DEFINED | 8 #ifndef GrGLGeometryProcessor_DEFINED |
| 9 #define GrGLGeometryProcessor_DEFINED | 9 #define GrGLGeometryProcessor_DEFINED |
| 10 | 10 |
| 11 #include "GrGLProcessor.h" | 11 #include "GrGLProcessor.h" |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the
n it must inherit | 14 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the
n it must inherit |
| 15 * from this class. Since paths don't have vertices, this class is only meant to
be used internally | 15 * from this class. Since paths don't have vertices, this class is only meant to
be used internally |
| 16 * by skia, for special cases. | 16 * by skia, for special cases. |
| 17 */ | 17 */ |
| 18 class GrGLGeometryProcessor : public GrGLProcessor { | 18 class GrGLGeometryProcessor : public GrGLProcessor { |
| 19 public: | 19 public: |
| 20 GrGLGeometryProcessor(const GrBackendProcessorFactory& factory) | 20 GrGLGeometryProcessor(const GrBackendProcessorFactory& factory) |
| 21 : INHERITED(factory) {} | 21 : INHERITED(factory) {} |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * This is similar to emitCode() in the base class, except it takes a full s
hader builder. | 24 * This is similar to emitCode() in the base class, except it takes a full s
hader builder. |
| 25 * This allows the effect subclass to emit vertex code. | 25 * This allows the effect subclass to emit vertex code. |
| 26 */ | 26 */ |
| 27 virtual void emitCode(GrGLGPBuilder* builder, | 27 virtual void emitCode(GrGLFullProgramBuilder* builder, |
| 28 const GrGeometryProcessor& geometryProcessor, | 28 const GrGeometryProcessor& geometryProcessor, |
| 29 const GrProcessorKey& key, | 29 const GrProcessorKey& key, |
| 30 const char* outputColor, | 30 const char* outputColor, |
| 31 const char* inputColor, | 31 const char* inputColor, |
| 32 const TransformedCoordsArray& coords, | 32 const TransformedCoordsArray& coords, |
| 33 const TextureSamplerArray& samplers) = 0; | 33 const TextureSamplerArray& samplers) = 0; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 typedef GrGLProcessor INHERITED; | 36 typedef GrGLProcessor INHERITED; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif | 39 #endif |
| OLD | NEW |