Add support for reading the dst pixel value in an effect. Use in a new effect for...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 29 Mar 2013 19:22:36 +0000 (19:22 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 29 Mar 2013 19:22:36 +0000 (19:22 +0000)
commit26e18b593ab65e4d92dfbce92579d8bc180d4c2c
treeddc5eddf771019decfe6a3401ea9b2da79dbc68a
parente36f3baa78cbf4a7bab6e5f14702d6a4d259abde
Add support for reading the dst pixel value in an effect. Use in a new effect for the kDarken xfer mode.

The current implementation is to always make a copy of the entire dst before the draw.
It will only succeed if the RT is also a texture.
Obviously, there is lots of room for improvement.
Review URL: https://codereview.chromium.org/13314002

git-svn-id: http://skia.googlecode.com/svn/trunk@8449 2bbb7eff-a529-9590-31e7-b0007b416f81
17 files changed:
include/core/SkXfermode.h
include/gpu/GrEffect.h
include/gpu/GrTexture.h
src/core/SkXfermode.cpp
src/gpu/GrDrawTarget.cpp
src/gpu/GrDrawTarget.h
src/gpu/GrGpu.cpp
src/gpu/GrGpu.h
src/gpu/SkGpuDevice.cpp
src/gpu/gl/GrGLProgram.cpp
src/gpu/gl/GrGLProgram.h
src/gpu/gl/GrGLProgramDesc.cpp
src/gpu/gl/GrGLProgramDesc.h
src/gpu/gl/GrGLShaderBuilder.cpp
src/gpu/gl/GrGLShaderBuilder.h
src/gpu/gl/GrGpuGL.h
src/gpu/gl/GrGpuGL_program.cpp