Make GrDrawTarget::Caps ref counted and GrGLCaps derive from it.
Also rename GrDrawTarget::getCaps() -> GrDrawTarget::caps().
Review URL: https://codereview.chromium.org/12843026
git-svn-id: http://skia.googlecode.com/svn/trunk@8364 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 68db27a..bfe2094 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -36,13 +36,13 @@
fAttribBindings |= random->nextBool() ? GrDrawState::kCoverage_AttribBindingsBit : 0;
#if GR_GL_EXPERIMENTAL_GS
- fExperimentalGS = gpu->getCaps().geometryShaderSupport() && random->nextBool();
+ fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool();
#endif
bool edgeAA = random->nextBool();
if (edgeAA) {
fAttribBindings |= GrDrawState::kEdge_AttribBindingsBit;
- if (gpu->getCaps().shaderDerivativeSupport()) {
+ if (gpu->caps()->shaderDerivativeSupport()) {
fVertexEdgeType = (GrDrawState::VertexEdgeType)
random->nextULessThan(GrDrawState::kVertexEdgeTypeCnt);
fDiscardIfOutsideEdge = random->nextBool();
@@ -52,7 +52,7 @@
}
}
- if (gpu->getCaps().dualSourceBlendingSupport()) {
+ if (gpu->caps()->dualSourceBlendingSupport()) {
fDualSrcOutput = random->nextULessThan(kDualSrcOutputCnt);
} else {
fDualSrcOutput = kNone_DualSrcOutput;