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

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

Issue 1109863004: Use GLSLCaps for creating processor keys and GLSL-specific programs (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 years, 8 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 const SkMatrix&, 161 const SkMatrix&,
162 const SkRect& domain, 162 const SkRect& domain,
163 GrTextureDomain::Mode, 163 GrTextureDomain::Mode,
164 GrTextureParams::FilterMode filterMode, 164 GrTextureParams::FilterMode filterMode,
165 GrCoordSet = kLocal_GrCoordSet); 165 GrCoordSet = kLocal_GrCoordSet);
166 166
167 virtual ~GrTextureDomainEffect(); 167 virtual ~GrTextureDomainEffect();
168 168
169 const char* name() const override { return "TextureDomain"; } 169 const char* name() const override { return "TextureDomain"; }
170 170
171 void getGLProcessorKey(const GrGLCaps&, GrProcessorKeyBuilder*) const overri de; 171 void getGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const over ride;
172 172
173 GrGLFragmentProcessor* createGLInstance() const override; 173 GrGLFragmentProcessor* createGLInstance() const override;
174 174
175 const GrTextureDomain& textureDomain() const { return fTextureDomain; } 175 const GrTextureDomain& textureDomain() const { return fTextureDomain; }
176 176
177 protected: 177 protected:
178 GrTextureDomain fTextureDomain; 178 GrTextureDomain fTextureDomain;
179 179
180 private: 180 private:
181 GrTextureDomainEffect(GrTexture*, 181 GrTextureDomainEffect(GrTexture*,
182 const SkMatrix&, 182 const SkMatrix&,
183 const SkRect& domain, 183 const SkRect& domain,
184 GrTextureDomain::Mode, 184 GrTextureDomain::Mode,
185 GrTextureParams::FilterMode, 185 GrTextureParams::FilterMode,
186 GrCoordSet); 186 GrCoordSet);
187 187
188 bool onIsEqual(const GrFragmentProcessor&) const override; 188 bool onIsEqual(const GrFragmentProcessor&) const override;
189 189
190 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; 190 void onComputeInvariantOutput(GrInvariantOutput* inout) const override;
191 191
192 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 192 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
193 193
194 typedef GrSingleTextureEffect INHERITED; 194 typedef GrSingleTextureEffect INHERITED;
195 }; 195 };
196 196
197 #endif 197 #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