OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrPrimitiveProcessor_DEFINED | 8 #ifndef GrPrimitiveProcessor_DEFINED |
9 #define GrPrimitiveProcessor_DEFINED | 9 #define GrPrimitiveProcessor_DEFINED |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 return reinterpret_cast<T*>(fData.get()); | 60 return reinterpret_cast<T*>(fData.get()); |
61 } | 61 } |
62 | 62 |
63 static const size_t kMaxSize = 32; | 63 static const size_t kMaxSize = 32; |
64 | 64 |
65 private: | 65 private: |
66 SkAlignedSStorage<kMaxSize> fData; | 66 SkAlignedSStorage<kMaxSize> fData; |
67 }; | 67 }; |
68 | 68 |
69 class GrIndexBufferAllocPool; | 69 class GrIndexBufferAllocPool; |
70 class GrGLCaps; | 70 class GrGLSLCaps; |
71 typedef GrGLCaps GrGLSLCaps; | |
72 class GrGLPrimitiveProcessor; | 71 class GrGLPrimitiveProcessor; |
73 class GrVertexBufferAllocPool; | 72 class GrVertexBufferAllocPool; |
74 | 73 |
75 struct GrInitInvariantOutput; | 74 struct GrInitInvariantOutput; |
76 | 75 |
77 /* | 76 /* |
78 * This struct allows the GrPipeline to communicate information about the pipeli
ne. Most of this | 77 * This struct allows the GrPipeline to communicate information about the pipeli
ne. Most of this |
79 * is overrides, but some of it is general information. Logically it should liv
e in GrPipeline.h, | 78 * is overrides, but some of it is general information. Logically it should liv
e in GrPipeline.h, |
80 * but this is problematic due to circular dependencies. | 79 * but this is problematic due to circular dependencies. |
81 */ | 80 */ |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 virtual bool hasExplicitLocalCoords() const = 0; | 222 virtual bool hasExplicitLocalCoords() const = 0; |
224 | 223 |
225 const SkMatrix fViewMatrix; | 224 const SkMatrix fViewMatrix; |
226 SkMatrix fLocalMatrix; | 225 SkMatrix fLocalMatrix; |
227 bool fIsPathRendering; | 226 bool fIsPathRendering; |
228 | 227 |
229 typedef GrProcessor INHERITED; | 228 typedef GrProcessor INHERITED; |
230 }; | 229 }; |
231 | 230 |
232 #endif | 231 #endif |
OLD | NEW |