| 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; |
| 68 void onDrawPaths(const GrPipeline&, | 72 void onDrawPaths(const GrPipeline&, |
| 69 const GrPrimitiveProcessor&, | 73 const GrPrimitiveProcessor&, |
| 70 const GrStencilSettings&, | 74 const GrStencilSettings&, |
| 71 const GrPathRange*, | 75 const GrPathRange*, |
| 72 const void* indices, | 76 const void* indices, |
| 73 PathIndexType, | 77 PathIndexType, |
| 74 const float transformValues[], | 78 const float transformValues[], |
| 75 PathTransformType, | 79 PathTransformType, |
| 76 int count) override; | 80 int count) override; |
| 77 void onDrawPaths(const GrPipeline&, | |
| 78 const GrPrimitiveProcessor&, | |
| 79 const GrStencilSettings&, | |
| 80 const GrPath* const*, | |
| 81 int count) override; | |
| 82 private: | 81 private: |
| 83 /** | 82 /** |
| 84 * Mark certain functionality as not supported. | 83 * Mark certain functionality as not supported. |
| 85 */ | 84 */ |
| 86 struct Caps { | 85 struct Caps { |
| 87 bool bindFragmentInputSupport : 1; | 86 bool bindFragmentInputSupport : 1; |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 void flushPathStencilSettings(const GrStencilSettings&); | 89 void flushPathStencilSettings(const GrStencilSettings&); |
| 91 | 90 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 GrGLGpu* gpu(); | 122 GrGLGpu* gpu(); |
| 124 | 123 |
| 125 GrGLuint fFirstPreallocatedPathID; | 124 GrGLuint fFirstPreallocatedPathID; |
| 126 GrGLsizei fPreallocatedPathCount; | 125 GrGLsizei fPreallocatedPathCount; |
| 127 MatrixState fHWProjectionMatrixState; | 126 MatrixState fHWProjectionMatrixState; |
| 128 GrStencilSettings fHWPathStencilSettings; | 127 GrStencilSettings fHWPathStencilSettings; |
| 129 Caps fCaps; | 128 Caps fCaps; |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 #endif | 131 #endif |
| OLD | NEW |