aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/yuvtorgbeffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/yuvtorgbeffect.cpp')
-rw-r--r--gm/yuvtorgbeffect.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp
index eb2e422286..c6effed793 100644
--- a/gm/yuvtorgbeffect.cpp
+++ b/gm/yuvtorgbeffect.cpp
@@ -19,7 +19,7 @@
#include "SkGradientShader.h"
#include "effects/GrYUVEffect.h"
#include "ops/GrDrawOp.h"
-#include "ops/GrNonAAFillRectOp.h"
+#include "ops/GrRectOpFactory.h"
#define YSIZE 8
#define USIZE 4
@@ -133,8 +133,8 @@ protected:
SkMatrix viewMatrix;
viewMatrix.setTranslate(x, y);
renderTargetContext->priv().testingOnly_addDrawOp(
- GrNonAAFillRectOp::Make(std::move(grPaint), viewMatrix, renderRect,
- nullptr, nullptr, GrAAType::kNone));
+ GrRectOpFactory::MakeNonAAFill(std::move(grPaint), viewMatrix,
+ renderRect, GrAAType::kNone));
}
x += renderRect.width() + kTestPad;
}
@@ -256,9 +256,8 @@ protected:
SkMatrix viewMatrix;
viewMatrix.setTranslate(x, y);
grPaint.addColorFragmentProcessor(fp);
- renderTargetContext->priv().testingOnly_addDrawOp(
- GrNonAAFillRectOp::Make(std::move(grPaint), viewMatrix, renderRect, nullptr,
- nullptr, GrAAType::kNone));
+ renderTargetContext->priv().testingOnly_addDrawOp(GrRectOpFactory::MakeNonAAFill(
+ std::move(grPaint), viewMatrix, renderRect, GrAAType::kNone));
}
}
}