diff options
author | 2015-05-26 09:49:05 -0700 | |
---|---|---|
committer | 2015-05-26 09:49:05 -0700 | |
commit | 6a44c6a7d89b748fb040d41697a337d357d7fa22 (patch) | |
tree | b579537e83e03bf1b982a4a823ab4a63f1f6a993 /src/effects/SkArithmeticMode_gpu.cpp | |
parent | 36ec383c579066520357605eb8726193f251187e (diff) |
Move DstCoordTexture to GrXP, rename and remove the word "copy" from dstcopytexture names.
Committed: https://skia.googlesource.com/skia/+/bb106b5f6ee18f7453b63f3a95f421b60a957f39
Review URL: https://codereview.chromium.org/1132093004
Diffstat (limited to 'src/effects/SkArithmeticMode_gpu.cpp')
-rw-r--r-- | src/effects/SkArithmeticMode_gpu.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/effects/SkArithmeticMode_gpu.cpp b/src/effects/SkArithmeticMode_gpu.cpp index ae0839710c..3b815e5210 100644 --- a/src/effects/SkArithmeticMode_gpu.cpp +++ b/src/effects/SkArithmeticMode_gpu.cpp @@ -161,9 +161,8 @@ GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrArithmeticFP); class ArithmeticXP : public GrXferProcessor { public: static GrXferProcessor* Create(float k1, float k2, float k3, float k4, bool enforcePMColor, - const GrDeviceCoordTexture* dstCopy, - bool willReadDstColor) { - return SkNEW_ARGS(ArithmeticXP, (k1, k2, k3, k4, enforcePMColor, dstCopy, + const DstTexture* dstTexture, bool willReadDstColor) { + return SkNEW_ARGS(ArithmeticXP, (k1, k2, k3, k4, enforcePMColor, dstTexture, willReadDstColor)); } @@ -183,7 +182,7 @@ public: private: ArithmeticXP(float k1, float k2, float k3, float k4, bool enforcePMColor, - const GrDeviceCoordTexture* dstCopy, bool willReadDstColor); + const DstTexture*, bool willReadDstColor); GrXferProcessor::OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, @@ -263,8 +262,8 @@ private: /////////////////////////////////////////////////////////////////////////////// ArithmeticXP::ArithmeticXP(float k1, float k2, float k3, float k4, bool enforcePMColor, - const GrDeviceCoordTexture* dstCopy, bool willReadDstColor) - : INHERITED(dstCopy, willReadDstColor) + const DstTexture* dstTexture, bool willReadDstColor) + : INHERITED(dstTexture, willReadDstColor) , fK1(k1) , fK2(k2) , fK3(k3) @@ -301,8 +300,8 @@ GrXferProcessor* GrArithmeticXPFactory::onCreateXferProcessor(const GrCaps& caps, const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, - const GrDeviceCoordTexture* dstCopy) const { - return ArithmeticXP::Create(fK1, fK2, fK3, fK4, fEnforcePMColor, dstCopy, + const DstTexture* dstTexture) const { + return ArithmeticXP::Create(fK1, fK2, fK3, fK4, fEnforcePMColor, dstTexture, this->willReadDstColor(caps, colorPOI, coveragePOI)); } |