diff options
Diffstat (limited to 'src/gpu/GrPipeline.cpp')
-rw-r--r-- | src/gpu/GrPipeline.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp index 193c32020f..9e04b86e2e 100644 --- a/src/gpu/GrPipeline.cpp +++ b/src/gpu/GrPipeline.cpp @@ -83,22 +83,30 @@ void GrPipeline::init(const InitArgs& args) { } } -static void add_dependencies_for_processor(const GrFragmentProcessor* proc, GrRenderTarget* rt) { +// MDB TODO: re-enable when TextureSamplers store texture proxies +#if 0 +static void add_dependencies_for_processor(const GrFragmentProcessor* proc, + GrRenderTargetProxy* rtp) { GrFragmentProcessor::TextureAccessIter iter(proc); while (const GrResourceIOProcessor::TextureSampler* sampler = iter.next()) { - SkASSERT(rt->getLastOpList()); - rt->getLastOpList()->addDependency(sampler->texture()); + SkASSERT(rtp->getLastOpList()); + rtp->getLastOpList()->addDependency(sampler->texture()); } } +#endif -void GrPipeline::addDependenciesTo(GrRenderTarget* rt) const { +void GrPipeline::addDependenciesTo(GrRenderTargetProxy* rtp) const { + // MDB TODO: re-enable when TextureSamplers store texture proxies +#if 0 for (int i = 0; i < fFragmentProcessors.count(); ++i) { - add_dependencies_for_processor(fFragmentProcessors[i].get(), rt); + add_dependencies_for_processor(fFragmentProcessors[i].get(), rtp); } +#endif if (fDstTexture) { - SkASSERT(rt->getLastOpList()); - rt->getLastOpList()->addDependency(fDstTexture.get()); + SkASSERT(rtp->getLastOpList()); + // MDB TODO: re-enable when TextureSamplers store texture proxies + //rtp->getLastOpList()->addDependency(fDstTexture.get()); } } |