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

Unified Diff: src/gpu/gl/GrGLGpu.cpp

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: Add Xfer barriers with glTextureBarrier instead of dst copies Created 5 years, 8 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 | « src/gpu/gl/GrGLGpu.h ('k') | tests/GLProgramsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLGpu.cpp
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
index 954ecc4f61c3401ba89f753e5323f27e996e217f..f4d926effee8f3bc80b452400ef0c5b9940c6f2c 100644
--- a/src/gpu/gl/GrGLGpu.cpp
+++ b/src/gpu/gl/GrGLGpu.cpp
@@ -2768,6 +2768,15 @@ bool GrGLGpu::canCopySurface(const GrSurface* dst,
return false;
}
+void GrGLGpu::setXferBarrier(GrXferBarrierType type) {
+ switch (type) {
+ case kTexture_GrXferBarrierType:
+ SkASSERT(this->caps()->textureBarrierSupport());
Chris Dalton 2015/04/17 08:06:05 I can update this to an if instead of an assert, t
bsalomon 2015/04/21 15:19:27 I think an assert is fine. Technically a client co
+ GL_CALL(TextureBarrier());
+ return;
+ }
+}
+
void GrGLGpu::didAddGpuTraceMarker() {
if (this->caps()->gpuTracingSupport()) {
const GrTraceMarkerSet& markerArray = this->getActiveTraceMarkers();
« no previous file with comments | « src/gpu/gl/GrGLGpu.h ('k') | tests/GLProgramsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698