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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 1040303002: Use texture barriers to read directly from the RT (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_zz1_reverseiter
Patch Set: Created 5 years, 9 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
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 8a12a31ea9f1d884ac593a5b642d4ba3370d5508..2dabf266508be7f3b41ac1d8a7434abe0ab7a015 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -766,6 +766,13 @@ private:
*/
virtual bool onInitCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* dstDesc) = 0;
+ /**
+ * Inserts a boundary between render passes that touch the same pixels. This prevents
+ * Gr from batching together draw calls for which overlap is illegal, and some blending
+ * extensions require the use of a barrier in order to guarantee coherent results.
+ */
+ virtual void onBlendBarrier() = 0;
+
// helpers for reserving vertex and index space.
bool reserveVertexSpace(size_t vertexSize,
int vertexCount,

Powered by Google App Engine
This is Rietveld 408576698