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 |
11 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
12 #include "GrPathRendering.h" | 12 #include "GrPathRendering.h" |
| 13 #include "GrStencilSettings.h" |
13 #include "gl/GrGLTypes.h" | 14 #include "gl/GrGLTypes.h" |
14 #include "glsl/GrGLSLUtil.h" | 15 #include "glsl/GrGLSLUtil.h" |
15 | 16 |
16 class GrGLNameAllocator; | 17 class GrGLNameAllocator; |
17 class GrGLGpu; | 18 class GrGLGpu; |
18 class GrStencilSettings; | |
19 class GrStyle; | 19 class GrStyle; |
20 | 20 |
21 /** | 21 /** |
22 * This class wraps the NV_path_rendering extension and manages its various | 22 * This class wraps the NV_path_rendering extension and manages its various |
23 * API versions. If a method is not present in the GrGLInterface of the GrGLGpu | 23 * API versions. If a method is not present in the GrGLInterface of the GrGLGpu |
24 * (because the driver version is old), it tries to provide a backup | 24 * (because the driver version is old), it tries to provide a backup |
25 * implementation. But if a backup implementation is not practical, it marks the | 25 * implementation. But if a backup implementation is not practical, it marks the |
26 * method as not supported. | 26 * method as not supported. |
27 */ | 27 */ |
28 class GrGLPathRendering : public GrPathRendering { | 28 class GrGLPathRendering : public GrPathRendering { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 GrGLGpu* gpu(); | 123 GrGLGpu* gpu(); |
124 | 124 |
125 GrGLuint fFirstPreallocatedPathID; | 125 GrGLuint fFirstPreallocatedPathID; |
126 GrGLsizei fPreallocatedPathCount; | 126 GrGLsizei fPreallocatedPathCount; |
127 MatrixState fHWProjectionMatrixState; | 127 MatrixState fHWProjectionMatrixState; |
128 GrStencilSettings fHWPathStencilSettings; | 128 GrStencilSettings fHWPathStencilSettings; |
129 Caps fCaps; | 129 Caps fCaps; |
130 }; | 130 }; |
131 | 131 |
132 #endif | 132 #endif |
OLD | NEW |