Add a GrCustomCoordsTextureEffect class
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 30 Sep 2013 18:41:38 +0000 (18:41 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 30 Sep 2013 18:41:38 +0000 (18:41 +0000)
commit76eaf749cfb903916488bfaf90c40470033ed216
tree3bc192d66c6c7148134b64db27cbce6c7c57f277
parent1e10a9a207e6e6ccfbc7e9cdc93c472ae7c96712
Add a GrCustomCoordsTextureEffect class

Extracts a GrCustomCoordsTextureEffect class from
GrSimpleTextureEffect. This way there are no effects that can
conditionally require a vertex shader. They either always need one or
never do. Also removes kCustom_CoordsType from the CoordsType enum in
GrEffect (that enum is really only meant for coords provided by the
framework), and updates GrSimpleTextureEffect::TestCreate to make the
effect with position as well, instead of just local coords.

R=bsalomon@google.com

Author: cdalton@nvidia.com

Review URL: https://codereview.chromium.org/24018007

git-svn-id: http://skia.googlecode.com/svn/trunk@11531 2bbb7eff-a529-9590-31e7-b0007b416f81
gyp/gpu.gypi
include/gpu/GrEffect.h
src/gpu/GrTextContext.cpp
src/gpu/effects/GrCustomCoordsTextureEffect.cpp [new file with mode: 0644]
src/gpu/effects/GrCustomCoordsTextureEffect.h [new file with mode: 0644]
src/gpu/effects/GrSimpleTextureEffect.cpp
src/gpu/effects/GrSimpleTextureEffect.h
src/gpu/effects/GrSingleTextureEffect.h
src/gpu/gl/GrGLEffectMatrix.h