Index: src/gpu/GrOptDrawState.cpp |
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp |
index a494b171de3a77e652191d0abf153ff548cd5586..c323e2ee9c2f89339d17df1e634e243d097b3e41 100644 |
--- a/src/gpu/GrOptDrawState.cpp |
+++ b/src/gpu/GrOptDrawState.cpp |
@@ -106,6 +106,12 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState, |
drawState.hasGeometryProcessor()); |
fGeometryProcessor.reset(drawState.getGeometryProcessor()); |
+ // Create XferProcessor from DS's XPFactory |
+ SkASSERT(drawState.hasXPFactory()); |
+ const GrXferProcessor* xpProcessor = drawState.getXPFactory()->createXferProcessor(); |
+ fXferProcessor.reset(xpProcessor); |
+ SkSafeUnref(xpProcessor); |
bsalomon
2014/11/26 21:02:45
SkUnref() or ->unref(), no need for safety, right?
egdaniel
2014/12/01 18:18:24
correct
|
+ |
// Copy Stages from DS to ODS |
bool explicitLocalCoords = descInfo.hasLocalCoordAttribute(); |