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 GrFragmentProcessor_DEFINED | 8 #ifndef GrFragmentProcessor_DEFINED |
9 #define GrFragmentProcessor_DEFINED | 9 #define GrFragmentProcessor_DEFINED |
10 | 10 |
11 #include "GrProcessor.h" | 11 #include "GrProcessor.h" |
12 | 12 |
13 class GrCoordTransform; | 13 class GrCoordTransform; |
14 class GrGLCaps; | 14 class GrGLSLCaps; |
15 typedef GrGLCaps GrGLSLCaps; | |
16 class GrGLFragmentProcessor; | 15 class GrGLFragmentProcessor; |
17 class GrProcessorKeyBuilder; | 16 class GrProcessorKeyBuilder; |
18 | 17 |
19 /** Provides custom fragment shader code. Fragment processors receive an input c
olor (vec4f) and | 18 /** Provides custom fragment shader code. Fragment processors receive an input c
olor (vec4f) and |
20 produce an output color. They may reference textures and uniforms. They may
use | 19 produce an output color. They may reference textures and uniforms. They may
use |
21 GrCoordTransforms to receive a transformation of the local coordinates that
map from local space | 20 GrCoordTransforms to receive a transformation of the local coordinates that
map from local space |
22 to the fragment being processed. | 21 to the fragment being processed. |
23 */ | 22 */ |
24 class GrFragmentProcessor : public GrProcessor { | 23 class GrFragmentProcessor : public GrProcessor { |
25 public: | 24 public: |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 bool hasSameTransforms(const GrFragmentProcessor&) const; | 125 bool hasSameTransforms(const GrFragmentProcessor&) const; |
127 | 126 |
128 SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms; | 127 SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms; |
129 bool fWillUseInputColor; | 128 bool fWillUseInputColor; |
130 bool fUsesLocalCoords; | 129 bool fUsesLocalCoords; |
131 | 130 |
132 typedef GrProcessor INHERITED; | 131 typedef GrProcessor INHERITED; |
133 }; | 132 }; |
134 | 133 |
135 #endif | 134 #endif |
OLD | NEW |