Index: cc/output/direct_renderer.cc |
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc |
index 5339f829c2b2b0af105efb910e636f5b47907b0c..e741951e97a2f13c3f8232aeb3c06889b07f8df7 100644 |
--- a/cc/output/direct_renderer.cc |
+++ b/cc/output/direct_renderer.cc |
@@ -627,6 +627,9 @@ bool DirectRenderer::UseRenderPass(const RenderPass* render_pass) { |
} |
DCHECK(texture->id()); |
+ if (current_frame()->ComputeScissorRectForRenderPass().IsEmpty()) |
+ return false; |
+ |
if (BindFramebufferToTexture(texture)) { |
InitializeViewport(current_frame(), render_pass->output_rect, |
gfx::Rect(render_pass->output_rect.size()), |