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 GrSimpleTextureEffect_DEFINED | 8 #ifndef GrSimpleTextureEffect_DEFINED |
9 #define GrSimpleTextureEffect_DEFINED | 9 #define GrSimpleTextureEffect_DEFINED |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 GrSimpleTextureEffect(GrTexture* texture, | 58 GrSimpleTextureEffect(GrTexture* texture, |
59 const SkMatrix& matrix, | 59 const SkMatrix& matrix, |
60 const GrTextureParams& params, | 60 const GrTextureParams& params, |
61 GrCoordSet coordSet) | 61 GrCoordSet coordSet) |
62 : GrSingleTextureEffect(texture, matrix, params, coordSet) { | 62 : GrSingleTextureEffect(texture, matrix, params, coordSet) { |
63 this->initClassID<GrSimpleTextureEffect>(); | 63 this->initClassID<GrSimpleTextureEffect>(); |
64 } | 64 } |
65 | 65 |
66 GrGLSLFragmentProcessor* onCreateGLInstance() const override; | 66 GrGLSLFragmentProcessor* onCreateGLSLInstance() const override; |
67 | 67 |
68 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov
erride; | 68 void onGetGLSLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const
override; |
69 | 69 |
70 bool onIsEqual(const GrFragmentProcessor& other) const override { return tru
e; } | 70 bool onIsEqual(const GrFragmentProcessor& other) const override { return tru
e; } |
71 | 71 |
72 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; | 72 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; |
73 | 73 |
74 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 74 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
75 | 75 |
76 typedef GrSingleTextureEffect INHERITED; | 76 typedef GrSingleTextureEffect INHERITED; |
77 }; | 77 }; |
78 | 78 |
79 #endif | 79 #endif |
OLD | NEW |