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

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

Issue 1246193002: Moved GrGLFragmentProcessor definition to its own file (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 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
11 #include "GrSingleTextureEffect.h" 11 #include "GrSingleTextureEffect.h"
12 #include "gl/GrGLProcessor.h" 12 #include "gl/GrGLFragmentProcessor.h"
13 13
14 class GrGLProgramBuilder; 14 class GrGLProgramBuilder;
15 class GrGLShaderBuilder; 15 class GrGLShaderBuilder;
16 class GrInvariantOutput; 16 class GrInvariantOutput;
17 struct SkRect; 17 struct SkRect;
18 18
19 /** 19 /**
20 * Limits a texture's lookup coordinates to a domain. Samples outside the domain are either clamped 20 * Limits a texture's lookup coordinates to a domain. Samples outside the domain are either clamped
21 * the edge of the domain or result in a vec4 of zeros (decal mode). The domain is clipped to 21 * the edge of the domain or result in a vec4 of zeros (decal mode). The domain is clipped to
22 * normalized texture coords ([0,1]x[0,1] square). Bilinear filtering can cause texels outside the 22 * normalized texture coords ([0,1]x[0,1] square). Bilinear filtering can cause texels outside the
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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