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

Side by Side Diff: src/gpu/effects/GrCircleEdgeEffect.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/GrCircleEdgeEffect.h ('k') | src/gpu/effects/GrEllipseEdgeEffect.h » ('j') | 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 "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
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 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrCircleEdgeEffect.h ('k') | src/gpu/effects/GrEllipseEdgeEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698