Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: src/effects/SkArithmeticMode_gpu.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.h ('k') | src/effects/SkBlurMaskFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkArithmeticMode_gpu.cpp
diff --git a/src/effects/SkArithmeticMode_gpu.cpp b/src/effects/SkArithmeticMode_gpu.cpp
index ebc8293b208db98b7a40edb927201b005defa4ff..d7af9c8ff4ee35706c5a17b35f10fdf9aa775e2f 100644
--- a/src/effects/SkArithmeticMode_gpu.cpp
+++ b/src/effects/SkArithmeticMode_gpu.cpp
@@ -97,8 +97,8 @@ private:
///////////////////////////////////////////////////////////////////////////////
-GrArithmeticFP::GrArithmeticFP(float k1, float k2, float k3, float k4, bool enforcePMColor,
- const GrFragmentProcessor* dst)
+GrArithmeticFP::GrArithmeticFP(float k1, float k2, float k3, float k4,
+ bool enforcePMColor, const GrFragmentProcessor* dst, GrRenderTarget* dstRT)
: fK1(k1), fK2(k2), fK3(k3), fK4(k4), fEnforcePMColor(enforcePMColor) {
this->initClassID<GrArithmeticFP>();
@@ -139,7 +139,7 @@ const GrFragmentProcessor* GrArithmeticFP::TestCreate(GrProcessorTestData* d) {
bool enforcePMColor = d->fRandom->nextBool();
SkAutoTUnref<const GrFragmentProcessor> dst(GrProcessorUnitTest::CreateChildFP(d));
- return new GrArithmeticFP(k1, k2, k3, k4, enforcePMColor, dst);
+ return new GrArithmeticFP(k1, k2, k3, k4, enforcePMColor, dst, NULL);
}
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrArithmeticFP);
@@ -151,7 +151,7 @@ GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrArithmeticFP);
class ArithmeticXP : public GrXferProcessor {
public:
ArithmeticXP(const DstTexture*, bool hasMixedSamples,
- float k1, float k2, float k3, float k4, bool enforcePMColor);
+ float k1, float k2, float k3, float k4, bool enforcePMColor, GrRenderTarget* dst);
const char* name() const override { return "Arithmetic"; }
@@ -236,8 +236,8 @@ private:
///////////////////////////////////////////////////////////////////////////////
ArithmeticXP::ArithmeticXP(const DstTexture* dstTexture, bool hasMixedSamples,
- float k1, float k2, float k3, float k4, bool enforcePMColor)
- : INHERITED(dstTexture, true, hasMixedSamples)
+ float k1, float k2, float k3, float k4, bool enforcePMColor, GrRenderTarget* dst)
+ : INHERITED(dstTexture, true, hasMixedSamples, dst)
, fK1(k1)
, fK2(k2)
, fK3(k3)
@@ -273,8 +273,8 @@ GrArithmeticXPFactory::onCreateXferProcessor(const GrCaps& caps,
const GrProcOptInfo& colorPOI,
const GrProcOptInfo& coveragePOI,
bool hasMixedSamples,
- const DstTexture* dstTexture) const {
- return new ArithmeticXP(dstTexture, hasMixedSamples, fK1, fK2, fK3, fK4, fEnforcePMColor);
+ const DstTexture* dstTexture, GrRenderTarget* dst) const {
+ return new ArithmeticXP(dstTexture, hasMixedSamples, fK1, fK2, fK3, fK4, fEnforcePMColor, dst);
}
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.h ('k') | src/effects/SkBlurMaskFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698