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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 combined.setAll(SkIntToScalar(2) / fRenderTargetSize.fWidth, 0,
-SK_Scalar1, | 104 combined.setAll(SkIntToScalar(2) / fRenderTargetSize.fWidth, 0,
-SK_Scalar1, |
105 0, SkIntToScalar(2) / fRenderTargetSize.fHeight,
-SK_Scalar1, | 105 0, SkIntToScalar(2) / fRenderTargetSize.fHeight,
-SK_Scalar1, |
106 0, 0, 1); | 106 0, 0, 1); |
107 } | 107 } |
108 combined.preConcat(fViewMatrix); | 108 combined.preConcat(fViewMatrix); |
109 GrGLSLGetMatrix<Size>(destMatrix, combined); | 109 GrGLSLGetMatrix<Size>(destMatrix, combined); |
110 } | 110 } |
111 }; | 111 }; |
112 GrGLGpu* gpu(); | 112 GrGLGpu* gpu(); |
113 | 113 |
114 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; | 114 GrGLuint fFirstPreallocatedPathID; |
| 115 GrGLsizei fPreallocatedPathCount; |
115 MatrixState fHWProjectionMatrixState; | 116 MatrixState fHWProjectionMatrixState; |
116 GrStencilSettings fHWPathStencilSettings; | 117 GrStencilSettings fHWPathStencilSettings; |
117 Caps fCaps; | 118 Caps fCaps; |
118 }; | 119 }; |
119 | 120 |
120 #endif | 121 #endif |
OLD | NEW |