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

Unified Diff: include/gpu/GrContext.h

Issue 1970743002: Switch GrTextureToYUVPlanes over to newDrawContext calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Change newDrawContext contract Created 4 years, 7 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/gpu/GrTextureToYUVPlanes.cpp » ('j') | no next file with comments »
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 44dfda65ee0eaef5fe4bf1047958291fbaa5e126..46612b110deb58d849883d96744b82bf97d1cf85 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -196,6 +196,8 @@ public:
/**
* Create both a GrRenderTarget and a matching GrDrawContext to wrap it.
* The created GrRenderTarget will always be budgeted.
+ * We guarantee that "asTexture" will succeed for drawContexts created
+ * via this entry point.
*/
sk_sp<GrDrawContext> newDrawContext(SkBackingFit fit,
int width, int height,
« no previous file with comments | « no previous file | src/gpu/GrTextureToYUVPlanes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698