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 #include "GrEllipseEdgeEffect.h" | 8 #include "GrEllipseEdgeEffect.h" |
9 #include "gl/GrGLEffect.h" | 9 #include "gl/GrGLEffect.h" |
10 #include "gl/GrGLEffectMatrix.h" | |
11 #include "gl/GrGLSL.h" | 10 #include "gl/GrGLSL.h" |
12 #include "gl/GrGLTexture.h" | |
13 #include "GrTBackendEffectFactory.h" | 11 #include "GrTBackendEffectFactory.h" |
14 #include "GrTexture.h" | |
15 | 12 |
16 class GrGLEllipseEdgeEffect : public GrGLEffect { | 13 class GrGLEllipseEdgeEffect : public GrGLEffect { |
17 public: | 14 public: |
18 GrGLEllipseEdgeEffect(const GrBackendEffectFactory& factory, const GrDrawEff
ect&) | 15 GrGLEllipseEdgeEffect(const GrBackendEffectFactory& factory, const GrDrawEff
ect&) |
19 : INHERITED (factory) {} | 16 : INHERITED (factory) {} |
20 | 17 |
21 virtual void emitCode(GrGLShaderBuilder* builder, | 18 virtual void emitCode(GrGLShaderBuilder* builder, |
22 const GrDrawEffect& drawEffect, | 19 const GrDrawEffect& drawEffect, |
23 EffectKey key, | 20 EffectKey key, |
24 const char* outputColor, | 21 const char* outputColor, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 92 |
96 /////////////////////////////////////////////////////////////////////////////// | 93 /////////////////////////////////////////////////////////////////////////////// |
97 | 94 |
98 GR_DEFINE_EFFECT_TEST(GrEllipseEdgeEffect); | 95 GR_DEFINE_EFFECT_TEST(GrEllipseEdgeEffect); |
99 | 96 |
100 GrEffectRef* GrEllipseEdgeEffect::TestCreate(SkMWCRandom* random, | 97 GrEffectRef* GrEllipseEdgeEffect::TestCreate(SkMWCRandom* random, |
101 GrContext* context, | 98 GrContext* context, |
102 GrTexture* textures[]) { | 99 GrTexture* textures[]) { |
103 return GrEllipseEdgeEffect::Create(random->nextBool()); | 100 return GrEllipseEdgeEffect::Create(random->nextBool()); |
104 } | 101 } |
OLD | NEW |