Index: src/gpu/effects/GrPorterDuffXferProcessor.cpp |
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
index 2735ac3c22eceefc9049a382c4c751a746a1d23b..77b7fcaac00c5e52a6d433124d513ea5ca8f208d 100644 |
--- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
@@ -90,7 +90,16 @@ public: |
GrColor* overrideColor, |
const GrDrawTargetCaps& caps) override; |
- void getBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override { |
+ GrBlendCoeff getSrcBlend() const { return fSrcBlend; } |
+ GrBlendCoeff getDstBlend() const { return fDstBlend; } |
+ |
+private: |
+ PorterDuffXferProcessor(GrBlendCoeff srcBlend, GrBlendCoeff dstBlend, GrColor constant, |
+ const GrDeviceCoordTexture* dstCopy, bool willReadDstColor); |
+ |
+ void onGetGLProcessorKey(const GrGLCaps& caps, GrProcessorKeyBuilder* b) const override; |
+ |
+ void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override { |
if (!this->willReadDstColor()) { |
blendInfo->fSrcBlend = fSrcBlend; |
blendInfo->fDstBlend = fDstBlend; |
@@ -101,15 +110,6 @@ public: |
blendInfo->fBlendConstant = fBlendConstant; |
} |
- GrBlendCoeff getSrcBlend() const { return fSrcBlend; } |
- GrBlendCoeff getDstBlend() const { return fDstBlend; } |
- |
-private: |
- PorterDuffXferProcessor(GrBlendCoeff srcBlend, GrBlendCoeff dstBlend, GrColor constant, |
- const GrDeviceCoordTexture* dstCopy, bool willReadDstColor); |
- |
- void onGetGLProcessorKey(const GrGLCaps& caps, GrProcessorKeyBuilder* b) const override; |
- |
bool onIsEqual(const GrXferProcessor& xpBase) const override { |
const PorterDuffXferProcessor& xp = xpBase.cast<PorterDuffXferProcessor>(); |
if (fSrcBlend != xp.fSrcBlend || |