aboutsummaryrefslogtreecommitdiff
path: root/tests/GLProgramsTest.cpp
diff options
context:
space:
mode:
authorjoshualitt <joshualitt@chromium.org>2015-02-23 14:44:57 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-23 14:44:58 -0800
commit44701df5ce572ac3cccec785cf52103d3d5d14a5 (patch)
treeb2f3b5465cc8490261163006376c7f7a30b5399e /tests/GLProgramsTest.cpp
parent98c251bc7eec5aa236700d9936c740f2744788db (diff)
Move clip off of draw target
BUG=skia: Review URL: https://codereview.chromium.org/947443003
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r--tests/GLProgramsTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index aeb97c4635..d96c56c5e2 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -248,9 +248,8 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
stack.clipDevRect(screen, SkRegion::kReplace_Op, false);
// wrap the SkClipStack in a GrClipData
- GrClipData clipData;
- clipData.fClipStack.reset(SkRef(&stack));
- this->setClip(&clipData);
+ GrClip clip;
+ clip.setClipStack(&stack);
SkRandom random;
static const int NUM_TESTS = 512;
@@ -264,6 +263,7 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
GrPipelineBuilder pipelineBuilder;
pipelineBuilder.setRenderTarget(rt.get());
+ pipelineBuilder.setClip(clip);
// if path rendering we have to setup a couple of things like the draw type
bool usePathRendering = gpu->glCaps().pathRenderingSupport() && random.nextBool();