Hide GrDrawTarget::Caps's member vars
Review URL: https://codereview.appspot.com/6499044
git-svn-id: http://skia.googlecode.com/svn/trunk@5328 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index de8f323..4968c0b 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -1016,9 +1016,9 @@
stencilBits = stencilBuffer->bits();
}
- GrAssert(fGpu->getCaps().fStencilWrapOpsSupport ||
+ GrAssert(fGpu->getCaps().stencilWrapOpsSupport() ||
!settings.usesWrapOp());
- GrAssert(fGpu->getCaps().fTwoSidedStencilSupport || !settings.isTwoSided());
+ GrAssert(fGpu->getCaps().twoSidedStencilSupport() || !settings.isTwoSided());
this->adjustStencilParams(&settings, clipMode, stencilBits);
fGpu->setStencilSettings(settings);
}
@@ -1038,7 +1038,7 @@
unsigned int userBits = clipBit - 1;
GrStencilSettings::Face face = GrStencilSettings::kFront_Face;
- bool twoSided = fGpu->getCaps().fTwoSidedStencilSupport;
+ bool twoSided = fGpu->getCaps().twoSidedStencilSupport();
bool finished = false;
while (!finished) {