Added class AutoFragmentChildProcAdvance to be constructed before a child emitCode...
authorwangyix <wangyix@google.com>
Tue, 18 Aug 2015 14:24:29 +0000 (07:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Aug 2015 14:24:29 +0000 (07:24 -0700)
commit69ed114d388c56e83a2385d8b8182e6d05a0b073
tree97d7b6d63ecdafa81d2af8d4dc95bdee2dd51e1c
parent94c902e63d77641cadd76155c2b248d04f63b560
Added class AutoFragmentChildProcAdvance to be constructed before a child emitCode and destructed after

Fixed wrong indent

Changed auto child advance back to backwards linear search for getting subset of coords and samplers array of a child

Used offset from parent instead of backwards linear search to find a child proc's coords and transforms in Auto...Advance

append mangleString to variable name in nameVariable()

BUILDS! Added AutoFragmentChildProcAdvance class; fixed a few errors from previous commits

BUG=skia:4182

Review URL: https://codereview.chromium.org/1286293002
include/gpu/GrFragmentProcessor.h
src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp
src/gpu/gl/builders/GrGLFragmentShaderBuilder.h
src/gpu/gl/builders/GrGLProgramBuilder.cpp