Index: include/gpu/effects/GrPorterDuffXferProcessor.h |
diff --git a/include/gpu/effects/GrPorterDuffXferProcessor.h b/include/gpu/effects/GrPorterDuffXferProcessor.h |
index 72faeb572cc8e0fc4c2bf02dd7c8b8c94ca6ecec..d297e3290854c01e1d963df5c5f9f1b68fc4ac19 100644 |
--- a/include/gpu/effects/GrPorterDuffXferProcessor.h |
+++ b/include/gpu/effects/GrPorterDuffXferProcessor.h |
@@ -14,9 +14,9 @@ |
class GrProcOptInfo; |
-class GrPDXPFactory : public GrXPFactory { |
+class GrPorterDuffXPFactory : public GrXPFactory { |
public: |
- static const GrXPFactory* Create(SkXfermode::Mode mode); |
+ static GrXPFactory* Create(SkXfermode::Mode mode); |
bool supportsRGBCoverage(GrColor /*knownColor*/, uint32_t /*knownColorFlags*/) const override { |
return true; |
@@ -26,7 +26,7 @@ |
GrXPFactory::InvariantBlendedColor*) const override; |
private: |
- GrPDXPFactory(SkXfermode::Mode); |
+ GrPorterDuffXPFactory(SkXfermode::Mode); |
GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
const GrProcOptInfo& colorPOI, |
@@ -40,7 +40,7 @@ |
bool hasMixedSamples) const override; |
bool onIsEqual(const GrXPFactory& xpfBase) const override { |
- const GrPDXPFactory& xpf = xpfBase.cast<GrPDXPFactory>(); |
+ const GrPorterDuffXPFactory& xpf = xpfBase.cast<GrPorterDuffXPFactory>(); |
return fXfermode == xpf.fXfermode; |
} |
@@ -53,47 +53,4 @@ |
typedef GrXPFactory INHERITED; |
}; |
-class GrSrcOverPDXPFactory : public GrXPFactory { |
-public: |
- GrSrcOverPDXPFactory(); |
- |
- bool supportsRGBCoverage(GrColor /*knownColor*/, uint32_t /*knownColorFlags*/) const override { |
- return true; |
- } |
- |
- void getInvariantBlendedColor(const GrProcOptInfo& colorPOI, |
- GrXPFactory::InvariantBlendedColor*) const override; |
- |
-private: |
- GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
- const GrProcOptInfo& colorPOI, |
- const GrProcOptInfo& coveragePOI, |
- bool hasMixedSamples, |
- const DstTexture*) const override; |
- |
- bool willReadDstColor(const GrCaps& caps, |
- const GrProcOptInfo& colorPOI, |
- const GrProcOptInfo& coveragePOI, |
- bool hasMixedSamples) const override; |
- |
- bool onIsEqual(const GrXPFactory& /*xpfBase*/) const override { |
- return true; |
- } |
- |
- GR_DECLARE_XP_FACTORY_TEST; |
- |
- typedef GrXPFactory INHERITED; |
-}; |
- |
-namespace GrPorterDuffXPFactory { |
- const GrSrcOverPDXPFactory gSrcOverPDXPFactory; |
- |
- inline const GrXPFactory* Create(SkXfermode::Mode mode) { |
- if (SkXfermode::kSrcOver_Mode == mode) { |
- return SkRef(&gSrcOverPDXPFactory); |
- } |
- return GrPDXPFactory::Create(mode); |
- } |
-}; |
- |
#endif |