Introduction of set of functions to manage generation of texture fetch shader code.
authortwiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 Aug 2012 15:15:16 +0000 (15:15 +0000)
committertwiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 Aug 2012 15:15:16 +0000 (15:15 +0000)
commita5e65ec434fed44dc616e4f64950b835b541181b
treeffe3592179c7c3ce78db8e5e485c641900042015
parenteb7ad4a8b9c67743d6aa4e71b82e32f4cf1c8a9f
Introduction of set of functions to manage generation of texture fetch shader code.

A new set of routines have been added to GrGLShaderBuilder to emit texture fetches, taking into consideration the format of the texture to be accessed, and the channel swizzle.
Review URL: https://codereview.appspot.com/6446072

git-svn-id: http://skia.googlecode.com/svn/trunk@4919 2bbb7eff-a529-9590-31e7-b0007b416f81
22 files changed:
include/gpu/GrCustomStage.h
include/gpu/GrProgramStageFactory.h
src/effects/SkLightingImageFilter.cpp
src/effects/gradients/SkLinearGradient.cpp
src/effects/gradients/SkRadialGradient.cpp
src/effects/gradients/SkSweepGradient.cpp
src/effects/gradients/SkTwoPointConicalGradient.cpp
src/effects/gradients/SkTwoPointRadialGradient.cpp
src/gpu/GrCustomStage.cpp
src/gpu/effects/GrColorTableEffect.cpp
src/gpu/effects/GrColorTableEffect.h
src/gpu/effects/GrConvolutionEffect.cpp
src/gpu/effects/GrMorphologyEffect.cpp
src/gpu/effects/GrSingleTextureEffect.cpp
src/gpu/effects/GrTextureDomainEffect.cpp
src/gpu/gl/GrGLProgram.h
src/gpu/gl/GrGLProgramStage.cpp
src/gpu/gl/GrGLProgramStage.h
src/gpu/gl/GrGLShaderBuilder.cpp
src/gpu/gl/GrGLShaderBuilder.h
src/gpu/gl/GrGpuGL_program.cpp
src/gpu/gl/GrGpuGL_unittest.cpp