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 "GrCircleEdgeEffect.h" | 8 #include "GrCircleEdgeEffect.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 | |
16 #include "SkRTConf.h" | |
17 | 12 |
18 class GrGLCircleEdgeEffect : public GrGLEffect { | 13 class GrGLCircleEdgeEffect : public GrGLEffect { |
19 public: | 14 public: |
20 GrGLCircleEdgeEffect(const GrBackendEffectFactory& factory, const GrDrawEffe
ct&) | 15 GrGLCircleEdgeEffect(const GrBackendEffectFactory& factory, const GrDrawEffe
ct&) |
21 : INHERITED (factory) {} | 16 : INHERITED (factory) {} |
22 | 17 |
23 virtual void emitCode(GrGLShaderBuilder* builder, | 18 virtual void emitCode(GrGLShaderBuilder* builder, |
24 const GrDrawEffect& drawEffect, | 19 const GrDrawEffect& drawEffect, |
25 EffectKey key, | 20 EffectKey key, |
26 const char* outputColor, | 21 const char* outputColor, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 71 |
77 /////////////////////////////////////////////////////////////////////////////// | 72 /////////////////////////////////////////////////////////////////////////////// |
78 | 73 |
79 GR_DEFINE_EFFECT_TEST(GrCircleEdgeEffect); | 74 GR_DEFINE_EFFECT_TEST(GrCircleEdgeEffect); |
80 | 75 |
81 GrEffectRef* GrCircleEdgeEffect::TestCreate(SkMWCRandom* random, | 76 GrEffectRef* GrCircleEdgeEffect::TestCreate(SkMWCRandom* random, |
82 GrContext* context, | 77 GrContext* context, |
83 GrTexture* textures[]) { | 78 GrTexture* textures[]) { |
84 return GrCircleEdgeEffect::Create(random->nextBool()); | 79 return GrCircleEdgeEffect::Create(random->nextBool()); |
85 } | 80 } |
OLD | NEW |