Index: src/gpu/effects/GrPorterDuffXferProcessor.cpp |
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
index 73d58245c00766ee117c04dd3c97d13cfaa078ab..543a515e909e9ed59d2a64231bfe795ed1df20ce 100644 |
--- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
@@ -84,12 +84,6 @@ public: |
PrimaryOutputType primaryOutputType() const { return fPrimaryOutputType; } |
SecondaryOutputType secondaryOutputType() const { return fSecondaryOutputType; } |
- GrXferProcessor::OptFlags getOptimizations(const GrProcOptInfo& colorPOI, |
- const GrProcOptInfo& coveragePOI, |
- bool doesStencilWrite, |
- GrColor* overrideColor, |
- const GrDrawTargetCaps& caps) override; |
- |
GrBlendCoeff getSrcBlend() const { return fSrcBlend; } |
GrBlendCoeff getDstBlend() const { return fDstBlend; } |
@@ -97,6 +91,12 @@ private: |
PorterDuffXferProcessor(GrBlendCoeff srcBlend, GrBlendCoeff dstBlend, GrColor constant, |
const GrDeviceCoordTexture* dstCopy, bool willReadDstColor); |
+ GrXferProcessor::OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, |
+ const GrProcOptInfo& coveragePOI, |
+ bool doesStencilWrite, |
+ GrColor* overrideColor, |
+ const GrDrawTargetCaps& caps) override; |
+ |
void onGetGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override; |
void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override { |
@@ -301,11 +301,11 @@ GrGLXferProcessor* PorterDuffXferProcessor::createGLInstance() const { |
} |
GrXferProcessor::OptFlags |
-PorterDuffXferProcessor::getOptimizations(const GrProcOptInfo& colorPOI, |
- const GrProcOptInfo& coveragePOI, |
- bool doesStencilWrite, |
- GrColor* overrideColor, |
- const GrDrawTargetCaps& caps) { |
+PorterDuffXferProcessor::onGetOptimizations(const GrProcOptInfo& colorPOI, |
+ const GrProcOptInfo& coveragePOI, |
+ bool doesStencilWrite, |
+ GrColor* overrideColor, |
+ const GrDrawTargetCaps& caps) { |
GrXferProcessor::OptFlags optFlags; |
// Optimizations when doing RGB Coverage |
if (coveragePOI.isFourChannelOutput()) { |