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/GrTextureDomain.h

Issue 1287023009: Added tree structure to GrGLFragmentProcessor, i.e. GL instances (Closed) Base URL: https://skia.googlesource.com/skia@cs3_isequal_nonrecursive
Patch Set: moved onSetData from public to protected, onCreateGLInstance from public to private in subclasses Created 5 years, 4 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 const SkMatrix&, 162 const SkMatrix&,
163 const SkRect& domain, 163 const SkRect& domain,
164 GrTextureDomain::Mode, 164 GrTextureDomain::Mode,
165 GrTextureParams::FilterMode filterMode, 165 GrTextureParams::FilterMode filterMode,
166 GrCoordSet = kLocal_GrCoordSet); 166 GrCoordSet = kLocal_GrCoordSet);
167 167
168 virtual ~GrTextureDomainEffect(); 168 virtual ~GrTextureDomainEffect();
169 169
170 const char* name() const override { return "TextureDomain"; } 170 const char* name() const override { return "TextureDomain"; }
171 171
172 GrGLFragmentProcessor* createGLInstance() const override;
173
174 const GrTextureDomain& textureDomain() const { return fTextureDomain; } 172 const GrTextureDomain& textureDomain() const { return fTextureDomain; }
175 173
176 protected: 174 protected:
177 GrTextureDomain fTextureDomain; 175 GrTextureDomain fTextureDomain;
178 176
179 private: 177 private:
180 GrTextureDomainEffect(GrProcessorDataManager*, 178 GrTextureDomainEffect(GrProcessorDataManager*,
181 GrTexture*, 179 GrTexture*,
182 const SkMatrix&, 180 const SkMatrix&,
183 const SkRect& domain, 181 const SkRect& domain,
184 GrTextureDomain::Mode, 182 GrTextureDomain::Mode,
185 GrTextureParams::FilterMode, 183 GrTextureParams::FilterMode,
186 GrCoordSet); 184 GrCoordSet);
187 185
186 GrGLFragmentProcessor* onCreateGLInstance() const override;
187
188 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov erride; 188 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov erride;
189 189
190 bool onIsEqual(const GrFragmentProcessor&) const override; 190 bool onIsEqual(const GrFragmentProcessor&) const override;
191 191
192 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; 192 void onComputeInvariantOutput(GrInvariantOutput* inout) const override;
193 193
194 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 194 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
195 195
196 typedef GrSingleTextureEffect INHERITED; 196 typedef GrSingleTextureEffect INHERITED;
197 }; 197 };
198 198
199 #endif 199 #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