OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrGLPathRendering_DEFINED | 8 #ifndef GrGLPathRendering_DEFINED |
9 #define GrGLPathRendering_DEFINED | 9 #define GrGLPathRendering_DEFINED |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 /* Sets the projection matrix for path rendering */ | 58 /* Sets the projection matrix for path rendering */ |
59 void setProjectionMatrix(const SkMatrix& matrix, | 59 void setProjectionMatrix(const SkMatrix& matrix, |
60 const SkISize& renderTargetSize, | 60 const SkISize& renderTargetSize, |
61 GrSurfaceOrigin renderTargetOrigin); | 61 GrSurfaceOrigin renderTargetOrigin); |
62 | 62 |
63 GrGLuint genPaths(GrGLsizei range); | 63 GrGLuint genPaths(GrGLsizei range); |
64 GrGLvoid deletePaths(GrGLuint path, GrGLsizei range); | 64 GrGLvoid deletePaths(GrGLuint path, GrGLsizei range); |
65 | 65 |
66 protected: | 66 protected: |
67 void onStencilPath(const StencilPathArgs&, const GrPath*) override; | 67 void onStencilPath(const StencilPathArgs&, const GrPath*) override; |
68 void onDrawPath(const GrPipeline&, | |
69 const GrPrimitiveProcessor&, | |
70 const GrStencilSettings&, | |
71 const GrPath*) override; | |
72 void onDrawPaths(const GrPipeline&, | 68 void onDrawPaths(const GrPipeline&, |
73 const GrPrimitiveProcessor&, | 69 const GrPrimitiveProcessor&, |
74 const GrStencilSettings&, | 70 const GrStencilSettings&, |
75 const GrPathRange*, | 71 const GrPathRange*, |
76 const void* indices, | 72 const void* indices, |
77 PathIndexType, | 73 PathIndexType, |
78 const float transformValues[], | 74 const float transformValues[], |
79 PathTransformType, | 75 PathTransformType, |
80 int count) override; | 76 int count) override; |
| 77 void onDrawPaths(const GrPipeline&, |
| 78 const GrPrimitiveProcessor&, |
| 79 const GrStencilSettings&, |
| 80 const GrPath* const*, |
| 81 int count) override; |
81 private: | 82 private: |
82 /** | 83 /** |
83 * Mark certain functionality as not supported. | 84 * Mark certain functionality as not supported. |
84 */ | 85 */ |
85 struct Caps { | 86 struct Caps { |
86 bool bindFragmentInputSupport : 1; | 87 bool bindFragmentInputSupport : 1; |
87 }; | 88 }; |
88 | 89 |
89 void flushPathStencilSettings(const GrStencilSettings&); | 90 void flushPathStencilSettings(const GrStencilSettings&); |
90 | 91 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 GrGLGpu* gpu(); | 123 GrGLGpu* gpu(); |
123 | 124 |
124 GrGLuint fFirstPreallocatedPathID; | 125 GrGLuint fFirstPreallocatedPathID; |
125 GrGLsizei fPreallocatedPathCount; | 126 GrGLsizei fPreallocatedPathCount; |
126 MatrixState fHWProjectionMatrixState; | 127 MatrixState fHWProjectionMatrixState; |
127 GrStencilSettings fHWPathStencilSettings; | 128 GrStencilSettings fHWPathStencilSettings; |
128 Caps fCaps; | 129 Caps fCaps; |
129 }; | 130 }; |
130 | 131 |
131 #endif | 132 #endif |
OLD | NEW |