aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrClearOp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/ops/GrClearOp.h')
-rw-r--r--src/gpu/ops/GrClearOp.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gpu/ops/GrClearOp.h b/src/gpu/ops/GrClearOp.h
index 6e76191dff..59929b269a 100644
--- a/src/gpu/ops/GrClearOp.h
+++ b/src/gpu/ops/GrClearOp.h
@@ -33,7 +33,7 @@ public:
SkString string;
string.append(INHERITED::dumpInfo());
string.appendf("Scissor [ ");
- if (fClip.scissorEnabled()) {
+ if (fClip.scissorTest() == GrScissorTest::kEnabled) {
const SkIRect& r = fClip.scissorRect();
string.appendf("L: %d, T: %d, R: %d, B: %d", r.fLeft, r.fTop, r.fRight, r.fBottom);
} else {
@@ -83,9 +83,11 @@ private:
bool contains(const GrClearOp* that) const {
// The constructor ensures that scissor gets disabled on any clip that fills the entire RT.
- return !fClip.scissorEnabled() ||
- (that->fClip.scissorEnabled() &&
- fClip.scissorRect().contains(that->fClip.scissorRect()));
+ if (fClip.scissorTest() == GrScissorTest::kDisabled) {
+ return true;
+ }
+ return that->fClip.scissorTest() == GrScissorTest::kEnabled &&
+ fClip.scissorRect().contains(that->fClip.scissorRect());
}
void onPrepare(GrOpFlushState*) override {}