aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpu.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-08-12 11:14:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-12 11:14:50 -0700
commitcb02b38b2c48bfde333ce3c699dd0451e2d867fa (patch)
treefe4c1f40874588934ae4b07405dcdc9fc456bfa8 /src/gpu/gl/GrGLGpu.cpp
parent6028a8476504022fe40b6870b1460b5e4a80969f (diff)
Check for xfer barriers in GrBatch, auto-issue barriers in GrGpu
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r--src/gpu/gl/GrGLGpu.cpp2
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
}
}