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

Side by Side Diff: src/gpu/effects/GrTextureDomain.h

Issue 374923002: Goodbye GrEffectRef. (Closed) Base URL: https://skia.googlesource.com/skia.git@noref3
Patch Set: Address comments Created 6 years, 5 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
« no previous file with comments | « src/gpu/effects/GrSimpleTextureEffect.cpp ('k') | src/gpu/effects/GrTextureDomain.cpp » ('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 2012 Google Inc. 2 * Copyright 2012 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 GrTextureDomainEffect_DEFINED 8 #ifndef GrTextureDomainEffect_DEFINED
9 #define GrTextureDomainEffect_DEFINED 9 #define GrTextureDomainEffect_DEFINED
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 }; 129 };
130 130
131 class GrGLTextureDomainEffect; 131 class GrGLTextureDomainEffect;
132 132
133 /** 133 /**
134 * A basic texture effect that uses GrTextureDomain. 134 * A basic texture effect that uses GrTextureDomain.
135 */ 135 */
136 class GrTextureDomainEffect : public GrSingleTextureEffect { 136 class GrTextureDomainEffect : public GrSingleTextureEffect {
137 137
138 public: 138 public:
139 static GrEffectRef* Create(GrTexture*, 139 static GrEffect* Create(GrTexture*,
140 const SkMatrix&, 140 const SkMatrix&,
141 const SkRect& domain, 141 const SkRect& domain,
142 GrTextureDomain::Mode, 142 GrTextureDomain::Mode,
143 GrTextureParams::FilterMode filterMode, 143 GrTextureParams::FilterMode filterMode,
144 GrCoordSet = kLocal_GrCoordSet); 144 GrCoordSet = kLocal_GrCoordSet);
145 145
146 virtual ~GrTextureDomainEffect(); 146 virtual ~GrTextureDomainEffect();
147 147
148 static const char* Name() { return "TextureDomain"; } 148 static const char* Name() { return "TextureDomain"; }
149 149
150 typedef GrGLTextureDomainEffect GLEffect; 150 typedef GrGLTextureDomainEffect GLEffect;
151 151
152 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; 152 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE;
153 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags ) const SK_OVERRIDE; 153 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags ) const SK_OVERRIDE;
154 154
(...skipping 11 matching lines...) Expand all
166 GrCoordSet); 166 GrCoordSet);
167 167
168 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE; 168 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE;
169 169
170 GR_DECLARE_EFFECT_TEST; 170 GR_DECLARE_EFFECT_TEST;
171 171
172 typedef GrSingleTextureEffect INHERITED; 172 typedef GrSingleTextureEffect INHERITED;
173 }; 173 };
174 174
175 #endif 175 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrSimpleTextureEffect.cpp ('k') | src/gpu/effects/GrTextureDomain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698