Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: include/gpu/GrContext.h

Issue 2296193005: Add a makeDrawContextWithFallback that handles config fallback (Closed)
Patch Set: update Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/effects/SkAlphaThresholdFilter.cpp » ('j') | src/gpu/GrContext.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 5785553dfdeae753b36233d1c81b2e3bfa663cea..545c3e135b930eabde4c39ed783f4563c0558f3c 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -184,6 +184,8 @@ public:
* Create both a GrRenderTarget and a matching GrDrawContext to wrap it.
* We guarantee that "asTexture" will succeed for drawContexts created
* via this entry point.
+ * This method will check the renderability of 'config' and fallback to
bsalomon 2016/09/01 19:47:05 Should we specifically call out that the set of ch
robertphillips 2016/09/01 20:52:54 Done.
+ * an alternate config if necessary (e.g., A8 and 888 -> 8888)
*/
sk_sp<GrDrawContext> makeDrawContext(SkBackingFit fit,
int width, int height,
« no previous file with comments | « no previous file | src/effects/SkAlphaThresholdFilter.cpp » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698