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 | 16 |
17 class GrGLPathProcessor : public GrGLPrimitiveProcessor { | 17 class GrGLPathProcessor : public GrGLPrimitiveProcessor { |
18 public: | 18 public: |
19 GrGLPathProcessor(const GrPathProcessor&, const GrBatchTracker&); | 19 GrGLPathProcessor(const GrPathProcessor&, const GrBatchTracker&); |
20 | 20 |
21 static void GenKey(const GrPathProcessor&, | 21 static void GenKey(const GrPathProcessor&, |
22 const GrBatchTracker& bt, | 22 const GrBatchTracker& bt, |
23 const GrGLCaps&, | 23 const GrGLSLCaps&, |
24 GrProcessorKeyBuilder* b); | 24 GrProcessorKeyBuilder* b); |
25 | 25 |
26 void emitCode(EmitArgs&) override; | 26 void emitCode(EmitArgs&) override; |
27 | 27 |
28 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*); | 28 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*); |
29 | 29 |
30 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId); | 30 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId); |
31 | 31 |
32 void setData(const GrGLProgramDataManager&, | 32 void setData(const GrGLProgramDataManager&, |
33 const GrPrimitiveProcessor&, | 33 const GrPrimitiveProcessor&, |
(...skipping 17 matching lines...) Expand all Loading... |
51 }; | 51 }; |
52 | 52 |
53 typedef SkSTArray<8, SeparableVaryingInfo, true> SeparableVaryingInfoArray; | 53 typedef SkSTArray<8, SeparableVaryingInfo, true> SeparableVaryingInfoArray; |
54 | 54 |
55 SeparableVaryingInfoArray fSeparableVaryingInfos; | 55 SeparableVaryingInfoArray fSeparableVaryingInfos; |
56 | 56 |
57 typedef GrGLPrimitiveProcessor INHERITED; | 57 typedef GrGLPrimitiveProcessor INHERITED; |
58 }; | 58 }; |
59 | 59 |
60 #endif | 60 #endif |
OLD | NEW |