GrSamplerState is being eviscerated as the stuff it controlled is migrating into specialized custom stages. ...
12 years, 4 months ago
(2012-07-25 14:40:10 UTC)
#1
GrSamplerState is being eviscerated as the stuff it controlled is migrating into
specialized custom stages.
The idea of this CL is to pull out the parts of SamplerState that will be
preserved. The custom stages will have to communicate the wrap and filter info
the the code that binds/configures textures. Also, these fields are needed by
the texture cache on ES2 devices with limited NPOT support.
The new class, GrTextureParams, is a member of GrSamplerState. However, the next
step will be to modify GrCustomStage to provide a GrTextureParams for each of
its GrTextures. Once all texture accesses happen within custom effects then the
GrTextureParams memeber can be removed from GrSamplerState.
GrSingleTextureEffect will take a GrTextureParams in its constructor. Other
stages may be able to have a single static GrTextureParams because they always
use the same params. Gradient effects will construct a GrTextureParams based on
the generating SkGradientShader's tile mode.
Jeff, I suspect after this may play into or interact with the texture access /
GrGLShaderBuilder stuff you're looking at.
Tom, I put you on the CC since you're WK gardener. This CL is right up your
alley so if you are able to review that'd be great but if not that's OK.
http://codereview.appspot.com/6440046/diff/1/include/gpu/GrContext.h File include/gpu/GrContext.h (right): http://codereview.appspot.com/6440046/diff/1/include/gpu/GrContext.h#newcode122 include/gpu/GrContext.h:122: * @param params The params used to draw a ...
12 years, 4 months ago
(2012-07-25 15:52:27 UTC)
#4
Issue 6440046: Move filter/wrap out of GrSamplerState into GrTextureParams
(Closed)
Created 12 years, 4 months ago by bsalomon
Modified 12 years, 4 months ago
Reviewers: twiz1, rileya, TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 7