| Index: cc/gl_renderer.cc
|
| diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc
|
| index de6cfc169e3ee1571ba0c8f3119cc7d3354b15fa..38da039f7456e37dea04e8779622bca75996cb37 100644
|
| --- a/cc/gl_renderer.cc
|
| +++ b/cc/gl_renderer.cc
|
| @@ -206,8 +206,16 @@ void GLRenderer::viewportChanged()
|
| m_isViewportChanged = true;
|
| }
|
|
|
| -void GLRenderer::clearFramebuffer(DrawingFrame& frame)
|
| +void GLRenderer::clearFramebuffer(DrawingFrame& frame, bool full)
|
| {
|
| + if (full) {
|
| + GLC(m_context, m_context->clearColor(0, 0, 0, 0));
|
| + GLC(m_context, m_context->disable(GL_SCISSOR_TEST));
|
| + GLC(m_context, m_context->clear(GL_COLOR_BUFFER_BIT));
|
| + GLC(m_context, m_context->enable(GL_SCISSOR_TEST));
|
| + return;
|
| + }
|
| +
|
| // On DEBUG builds, opaque render passes are cleared to blue to easily see regions that were not drawn on the screen.
|
| if (frame.currentRenderPass->has_transparent_background)
|
| GLC(m_context, m_context->clearColor(0, 0, 0, 0));
|
|
|