Make GrDrawState and GrEffectStage use the pending io/exec ref mechanisms.
BUG=skia:2889
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/542723004
diff --git a/src/gpu/GrEffect.cpp b/src/gpu/GrEffect.cpp
index f952483..b8d945e 100644
--- a/src/gpu/GrEffect.cpp
+++ b/src/gpu/GrEffect.cpp
@@ -72,6 +72,7 @@
void GrEffect::addTextureAccess(const GrTextureAccess* access) {
fTextureAccesses.push_back(access);
+ this->addProgramResource(access->getTextureProgramResource());
}
void* GrEffect::operator new(size_t size) {