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