aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-07-29 06:08:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-29 06:08:46 -0700
commit636e8024f8df8df7b89813c8b2b1ea04d7481497 (patch)
treefd120472f7b1e861020d3dde383f0911bf49bafa /include/gpu
parent125960152dfd7f2aba4c2239131bdf75d9ac2705 (diff)
Skip temp texture when config conversion test has already failed.
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 65fac230cc..c4691e4652 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -445,6 +445,9 @@ private:
bool swapRAndB, const SkMatrix&);
const GrFragmentProcessor* createUPMToPMEffect(GrProcessorDataManager*, GrTexture*,
bool swapRAndB, const SkMatrix&);
+ /** Returns true if we've already determined that createPMtoUPMEffect and createUPMToPMEffect
+ will fail. In such cases fall back to SW conversion. */
+ bool didFailPMUPMConversionTest() const;
/**
* This callback allows the resource cache to callback into the GrContext