Remove use of GrEffectRef from draw state and below.
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/372773002
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 3df08a7..64c8559 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -76,16 +76,16 @@
bool vertexCode = false;
int numStages = numColorStages + numCoverageStages;
for (int s = 0; s < numStages; ++s) {
- const GrBackendEffectFactory& factory = (*stages[s]->getEffect())->getFactory();
+ const GrBackendEffectFactory& factory = stages[s]->getEffect()->getFactory();
GrDrawEffect drawEffect(*stages[s], useLocalCoords);
this->effectKeys()[s] = factory.glEffectKey(drawEffect, gpu->glCaps());
- if ((*stages[s]->getEffect())->willReadDstColor()) {
+ if (stages[s]->getEffect()->willReadDstColor()) {
dstRead = true;
}
- if ((*stages[s]->getEffect())->willReadFragmentPosition()) {
+ if (stages[s]->getEffect()->willReadFragmentPosition()) {
fragPos = true;
}
- if ((*stages[s]->getEffect())->hasVertexCode()) {
+ if (stages[s]->getEffect()->hasVertexCode()) {
vertexCode = true;
}
}