diff options
author | 2011-05-11 14:05:25 +0000 | |
---|---|---|
committer | 2011-05-11 14:05:25 +0000 | |
commit | 97c88c255cff3dbb8343c5d090526fdbedad6dd6 (patch) | |
tree | 018288372381d57dfd8eef285be5d7354067e926 /gpu/src/GrDrawTarget.cpp | |
parent | 0faac1e8579088a39f38d02ff675f14d7deb608d (diff) |
Add color filters to gpu path.
git-svn-id: http://skia.googlecode.com/svn/trunk@1297 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrDrawTarget.cpp')
-rw-r--r-- | gpu/src/GrDrawTarget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gpu/src/GrDrawTarget.cpp b/gpu/src/GrDrawTarget.cpp index 3810043f5e..695a2abdbb 100644 --- a/gpu/src/GrDrawTarget.cpp +++ b/gpu/src/GrDrawTarget.cpp @@ -380,6 +380,11 @@ void GrDrawTarget::setColor(GrColor c) { fCurrDrawState.fColor = c; } +void GrDrawTarget::setColorFilter(GrColor c, SkXfermode::Mode mode) { + fCurrDrawState.fColorFilterColor = c; + fCurrDrawState.fColorFilterXfermode = mode; +} + void GrDrawTarget::setAlpha(uint8_t a) { this->setColor((a << 24) | (a << 16) | (a << 8) | a); } |