diff options
author | 2015-08-12 11:14:50 -0700 | |
---|---|---|
committer | 2015-08-12 11:14:50 -0700 | |
commit | cb02b38b2c48bfde333ce3c699dd0451e2d867fa (patch) | |
tree | fe4c1f40874588934ae4b07405dcdc9fc456bfa8 /src/gpu/gl/GrGLGpu.cpp | |
parent | 6028a8476504022fe40b6870b1460b5e4a80969f (diff) |
Check for xfer barriers in GrBatch, auto-issue barriers in GrGpu
Review URL: https://codereview.chromium.org/1287973003
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index ec95557655..0945ed5651 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -3062,6 +3062,7 @@ bool GrGLGpu::copySurfaceAsBlitFramebuffer(GrSurface* dst, } void GrGLGpu::xferBarrier(GrRenderTarget* rt, GrXferBarrierType type) { + SkASSERT(type); switch (type) { case kTexture_GrXferBarrierType: { GrGLRenderTarget* glrt = static_cast<GrGLRenderTarget*>(rt); @@ -3080,6 +3081,7 @@ void GrGLGpu::xferBarrier(GrRenderTarget* rt, GrXferBarrierType type) { this->caps()->blendEquationSupport()); GL_CALL(BlendBarrier()); return; + default: break; // placate compiler warnings that kNone not handled } } |