aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ProcessorTest.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-05-08 10:43:33 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-10 14:48:47 +0000
commitac70f84e7f4fc9ddd344753b92cdf4be540d32bf (patch)
tree4b813dd3d6fae01afe6727a6897faf4c31fb240c /tests/ProcessorTest.cpp
parent0418a888d31689f5358b6b90fd09287aeba368db (diff)
Move all non-AA fill rect ops off of GrLegacyMeshDrawOp.
This adds perspective to GrNewNonAAFillRectOp, renames it to GrNonAAFillRectOp, and deletes the previous version of that namespace. Change-Id: I20f35bf019f9c9105e6ec83dda11328451138109 Reviewed-on: https://skia-review.googlesource.com/15634 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests/ProcessorTest.cpp')
-rw-r--r--tests/ProcessorTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp
index 29ea29f9a2..ee89ff3739 100644
--- a/tests/ProcessorTest.cpp
+++ b/tests/ProcessorTest.cpp
@@ -9,6 +9,7 @@
#include "Test.h"
#if SK_SUPPORT_GPU
+#include <random>
#include "GrClip.h"
#include "GrContext.h"
#include "GrGpuResource.h"
@@ -20,7 +21,6 @@
#include "glsl/GrGLSLFragmentShaderBuilder.h"
#include "ops/GrNonAAFillRectOp.h"
#include "ops/GrTestMeshDrawOp.h"
-#include <random>
namespace {
class TestOp : public GrTestMeshDrawOp {
@@ -266,11 +266,11 @@ void test_draw_op(GrRenderTargetContext* rtc, sk_sp<GrFragmentProcessor> fp,
nullptr, SkMatrix::I());
paint.addColorFragmentProcessor(std::move(fp));
paint.setPorterDuffXPFactory(SkBlendMode::kSrc);
- GrPipelineBuilder pb(std::move(paint), GrAAType::kNone);
- auto op =
- GrNonAAFillRectOp::Make(GrColor_WHITE, SkMatrix::I(),
- SkRect::MakeWH(rtc->width(), rtc->height()), nullptr, nullptr);
- rtc->addLegacyMeshDrawOp(std::move(pb), GrNoClip(), std::move(op));
+
+ auto op = GrNonAAFillRectOp::Make(std::move(paint), SkMatrix::I(),
+ SkRect::MakeWH(rtc->width(), rtc->height()), nullptr, nullptr,
+ GrAAType::kNone);
+ rtc->addDrawOp(GrNoClip(), std::move(op));
}
#include "SkCommandLineFlags.h"