Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Side by Side Diff: src/gpu/effects/GrEllipseEdgeEffect.cpp

Issue 12989004: Clean up GrCircleEdgeEffect and GrEllipseEdgeEffect (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/effects/GrEllipseEdgeEffect.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrEllipseEdgeEffect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698