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

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

Issue 617853003: Revert of Add isSingleComponent bool to getConstantColorComponent (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/GrSingleTextureEffect.h ('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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 GrTextureParams::FilterMode filterMode, 152 GrTextureParams::FilterMode filterMode,
153 GrCoordSet = kLocal_GrCoordSet); 153 GrCoordSet = kLocal_GrCoordSet);
154 154
155 virtual ~GrTextureDomainEffect(); 155 virtual ~GrTextureDomainEffect();
156 156
157 static const char* Name() { return "TextureDomain"; } 157 static const char* Name() { return "TextureDomain"; }
158 158
159 typedef GrGLTextureDomainEffect GLProcessor; 159 typedef GrGLTextureDomainEffect GLProcessor;
160 160
161 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR IDE; 161 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR IDE;
162 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags ) const SK_OVERRIDE;
162 163
163 const GrTextureDomain& textureDomain() const { return fTextureDomain; } 164 const GrTextureDomain& textureDomain() const { return fTextureDomain; }
164 165
165 protected: 166 protected:
166 GrTextureDomain fTextureDomain; 167 GrTextureDomain fTextureDomain;
167 168
168 private: 169 private:
169 GrTextureDomainEffect(GrTexture*, 170 GrTextureDomainEffect(GrTexture*,
170 const SkMatrix&, 171 const SkMatrix&,
171 const SkRect& domain, 172 const SkRect& domain,
172 GrTextureDomain::Mode, 173 GrTextureDomain::Mode,
173 GrTextureParams::FilterMode, 174 GrTextureParams::FilterMode,
174 GrCoordSet); 175 GrCoordSet);
175 176
176 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; 177 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE;
177 178
178 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE;
179
180 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 179 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
181 180
182 typedef GrSingleTextureEffect INHERITED; 181 typedef GrSingleTextureEffect INHERITED;
183 }; 182 };
184 183
185 #endif 184 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrSingleTextureEffect.h ('k') | src/gpu/effects/GrTextureDomain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698