| 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 class GrBatchTracker; | 13 class GrBatchTracker; |
| 14 class GrGLGPBuilder; | 14 class GrGLGPBuilder; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the
n it must inherit | 17 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the
n it must inherit |
| 18 * from this class. Since paths don't have vertices, this class is only meant to
be used internally | 18 * from this class. Since paths don't have vertices, this class is only meant to
be used internally |
| 19 * by skia, for special cases. | 19 * by skia, for special cases. |
| 20 */ | 20 */ |
| 21 class GrGLGeometryProcessor { | 21 class GrGLGeometryProcessor { |
| 22 public: | 22 public: |
| 23 GrGLGeometryProcessor() {} | 23 GrGLGeometryProcessor() {} |
| 24 virtual ~GrGLGeometryProcessor() {} | 24 virtual ~GrGLGeometryProcessor() {} |
| 25 | 25 |
| 26 typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
| 26 typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray; | 27 typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray; |
| 28 |
| 27 struct EmitArgs { | 29 struct EmitArgs { |
| 28 EmitArgs(GrGLGPBuilder* pb, | 30 EmitArgs(GrGLGPBuilder* pb, |
| 29 const GrGeometryProcessor& gp, | 31 const GrGeometryProcessor& gp, |
| 30 const GrBatchTracker& bt, | 32 const GrBatchTracker& bt, |
| 31 const char* outputColor, | 33 const char* outputColor, |
| 32 const char* outputCoverage, | 34 const char* outputCoverage, |
| 33 const TextureSamplerArray& samplers) | 35 const TextureSamplerArray& samplers) |
| 34 : fPB(pb) | 36 : fPB(pb) |
| 35 , fGP(gp) | 37 , fGP(gp) |
| 36 , fBT(bt) | 38 , fBT(bt) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 57 to have an identical processor key as the one that created this GrGLGeom
etryProcessor. */ | 59 to have an identical processor key as the one that created this GrGLGeom
etryProcessor. */ |
| 58 virtual void setData(const GrGLProgramDataManager&, | 60 virtual void setData(const GrGLProgramDataManager&, |
| 59 const GrGeometryProcessor&, | 61 const GrGeometryProcessor&, |
| 60 const GrBatchTracker&) = 0; | 62 const GrBatchTracker&) = 0; |
| 61 | 63 |
| 62 private: | 64 private: |
| 63 typedef GrGLProcessor INHERITED; | 65 typedef GrGLProcessor INHERITED; |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 #endif | 68 #endif |
| OLD | NEW |