From 5e66cf642c7ebd2eb0c57dee366463b029a1ef9a Mon Sep 17 00:00:00 2001 From: Jeff Gilbert Date: Thu, 7 Aug 2014 19:03:25 -0700 Subject: [PATCH] Bug 1045955 - Style fix. - r=kamidphish --- gfx/gl/SharedSurface.cpp | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/gfx/gl/SharedSurface.cpp b/gfx/gl/SharedSurface.cpp index 443c1884706..27743607fce 100644 --- a/gfx/gl/SharedSurface.cpp +++ b/gfx/gl/SharedSurface.cpp @@ -59,13 +59,20 @@ SharedSurface::ProdCopy(SharedSurface* src, SharedSurface* dest, GLuint destTex = dest->ProdTexture(); GLenum destTarget = dest->ProdTextureTarget(); - gl->BlitHelper()->BlitFramebufferToTexture(0, destTex, src->mSize, dest->mSize, destTarget); + gl->BlitHelper()->BlitFramebufferToTexture(0, destTex, + src->mSize, + dest->mSize, + destTarget, + true); } else if (dest->mAttachType == AttachmentType::GLRenderbuffer) { GLuint destRB = dest->ProdRenderbuffer(); ScopedFramebufferForRenderbuffer destWrapper(gl, destRB); - gl->BlitHelper()->BlitFramebufferToFramebuffer(0, destWrapper.FB(), - src->mSize, dest->mSize); + gl->BlitHelper()->BlitFramebufferToFramebuffer(0, + destWrapper.FB(), + src->mSize, + dest->mSize, + true); } else { MOZ_CRASH("Unhandled dest->mAttachType."); } @@ -97,13 +104,20 @@ SharedSurface::ProdCopy(SharedSurface* src, SharedSurface* dest, GLuint srcTex = src->ProdTexture(); GLenum srcTarget = src->ProdTextureTarget(); - gl->BlitHelper()->BlitTextureToFramebuffer(srcTex, 0, src->mSize, dest->mSize, srcTarget); + gl->BlitHelper()->BlitTextureToFramebuffer(srcTex, 0, + src->mSize, + dest->mSize, + srcTarget, + true); } else if (src->mAttachType == AttachmentType::GLRenderbuffer) { GLuint srcRB = src->ProdRenderbuffer(); ScopedFramebufferForRenderbuffer srcWrapper(gl, srcRB); - gl->BlitHelper()->BlitFramebufferToFramebuffer(srcWrapper.FB(), 0, - src->mSize, dest->mSize); + gl->BlitHelper()->BlitFramebufferToFramebuffer(srcWrapper.FB(), + 0, + src->mSize, + dest->mSize, + true); } else { MOZ_CRASH("Unhandled src->mAttachType."); }