Chromium Code Reviews| 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 GrGLPathProcessor_DEFINED | 8 #ifndef GrGLPathProcessor_DEFINED |
| 9 #define GrGLPathProcessor_DEFINED | 9 #define GrGLPathProcessor_DEFINED |
| 10 | 10 |
| 11 #include "GrGLPrimitiveProcessor.h" | 11 #include "GrGLPrimitiveProcessor.h" |
| 12 | 12 |
| 13 class GrPathProcessor; | 13 class GrPathProcessor; |
| 14 class GrGLPathRendering; | 14 class GrGLPathRendering; |
| 15 class GrGLGpu; | 15 class GrGLGpu; |
| 16 class GrGLPathProgramDataManager; | 16 class GrGLPathProgramDataManager; |
| 17 | 17 |
| 18 class GrGLPathProcessor : public GrGLPrimitiveProcessor { | 18 class GrGLPathProcessor : public GrGLPrimitiveProcessor { |
| 19 public: | 19 public: |
| 20 GrGLPathProcessor(const GrPathProcessor&, const GrBatchTracker&); | 20 GrGLPathProcessor(); |
| 21 | 21 |
| 22 static void GenKey(const GrPathProcessor&, | 22 static void GenKey(const GrPathProcessor&, |
| 23 const GrBatchTracker& bt, | |
| 24 const GrGLSLCaps&, | 23 const GrGLSLCaps&, |
| 25 GrProcessorKeyBuilder* b); | 24 GrProcessorKeyBuilder* b); |
| 26 | 25 |
| 27 void emitCode(EmitArgs&) override; | 26 void emitCode(EmitArgs&) override; |
| 28 | 27 |
| 29 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*); | 28 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*); |
| 30 | 29 |
| 31 void bindSeparableVaryings(GrGLGpu* gpu, GrGLuint programID); | 30 void bindSeparableVaryings(GrGLGpu* gpu, GrGLuint programID); |
| 32 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId); | 31 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId); |
| 33 | 32 |
| 34 void setData(const GrGLProgramDataManager&, | 33 void setData(const GrGLProgramDataManager&, |
|
bsalomon
2015/09/10 18:55:32
one line?
joshualitt
2015/09/10 20:08:06
Acknowledged.
| |
| 35 const GrPrimitiveProcessor&, | 34 const GrPrimitiveProcessor&) override; |
| 36 const GrBatchTracker&) override; | |
| 37 | 35 |
| 38 void setTransformData(const GrPrimitiveProcessor&, | 36 void setTransformData(const GrPrimitiveProcessor&, |
| 39 const GrGLPathProgramDataManager&, | 37 const GrGLPathProgramDataManager&, |
| 40 int index, | 38 int index, |
| 41 const SkTArray<const GrCoordTransform*, true>& transfo rms); | 39 const SkTArray<const GrCoordTransform*, true>& transfo rms); |
| 42 | 40 |
| 43 virtual void didSetData(GrGLPathRendering*) {} | 41 virtual void didSetData(GrGLPathRendering*) {} |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 UniformHandle fColorUniform; | 44 UniformHandle fColorUniform; |
| 47 GrColor fColor; | 45 GrColor fColor; |
| 48 | 46 |
| 49 typedef GrGLPrimitiveProcessor INHERITED; | 47 typedef GrGLPrimitiveProcessor INHERITED; |
| 50 }; | 48 }; |
| 51 | 49 |
| 52 #endif | 50 #endif |
| OLD | NEW |