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