OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrBackendEffectFactory_DEFINED | 8 #ifndef GrBackendEffectFactory_DEFINED |
9 #define GrBackendEffectFactory_DEFINED | 9 #define GrBackendEffectFactory_DEFINED |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 templated on the GrEffect subclass as their factory object. It requires that
the GrEffect | 21 templated on the GrEffect subclass as their factory object. It requires that
the GrEffect |
22 subclass has a nested class (or typedef) GLEffect which is its GL implementa
tion and a subclass | 22 subclass has a nested class (or typedef) GLEffect which is its GL implementa
tion and a subclass |
23 of GrGLEffect. | 23 of GrGLEffect. |
24 */ | 24 */ |
25 | 25 |
26 class GrEffectRef; | 26 class GrEffectRef; |
27 class GrGLEffect; | 27 class GrGLEffect; |
28 class GrGLCaps; | 28 class GrGLCaps; |
29 class GrDrawEffect; | 29 class GrDrawEffect; |
30 | 30 |
31 class GrBackendEffectFactory : public SkNoncopyable { | 31 class GrBackendEffectFactory : SkNoncopyable { |
32 public: | 32 public: |
33 typedef uint32_t EffectKey; | 33 typedef uint32_t EffectKey; |
34 enum { | 34 enum { |
35 kNoEffectKey = 0, | 35 kNoEffectKey = 0, |
36 kEffectKeyBits = 10, | 36 kEffectKeyBits = 10, |
37 /** | 37 /** |
38 * The framework automatically includes coord transforms and texture acc
esses in their | 38 * The framework automatically includes coord transforms and texture acc
esses in their |
39 * effect's EffectKey, so effects don't need to account for them in GenK
ey(). | 39 * effect's EffectKey, so effects don't need to account for them in GenK
ey(). |
40 */ | 40 */ |
41 kTextureKeyBits = 4, | 41 kTextureKeyBits = 4, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 return static_cast<EffectKey>(id); | 81 return static_cast<EffectKey>(id); |
82 } | 82 } |
83 | 83 |
84 EffectKey fEffectClassID; | 84 EffectKey fEffectClassID; |
85 | 85 |
86 private: | 86 private: |
87 static int32_t fCurrEffectClassID; | 87 static int32_t fCurrEffectClassID; |
88 }; | 88 }; |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |