aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawState.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-12-03 11:41:54 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-03 11:41:55 -0800
commitc016fb8f9fb53dd8d4936c5e9e16a9dc99ab392e (patch)
tree240c358dbbab8fef55266fd20916afbb97bb98fa /src/gpu/GrDrawState.cpp
parent96a6c4df417a2382dd183b0dbc1c614819795f2a (diff)
Use static XPF for porter duff xp factories.
Diffstat (limited to 'src/gpu/GrDrawState.cpp')
-rw-r--r--src/gpu/GrDrawState.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
index 0fd098740c..db70bfaaa2 100644
--- a/src/gpu/GrDrawState.cpp
+++ b/src/gpu/GrDrawState.cpp
@@ -116,8 +116,7 @@ void GrDrawState::onReset(const SkMatrix* initialViewMatrix) {
fRenderTarget.reset(NULL);
fGeometryProcessor.reset(NULL);
- fXPFactory.reset(GrPorterDuffXPFactory::Create(kOne_GrBlendCoeff,
- kZero_GrBlendCoeff));
+ fXPFactory.reset(GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode));
fColorStages.reset();
fCoverageStages.reset();