Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1146)

Unified Diff: cc/output/direct_renderer.cc

Issue 2930803003: Fail UseRenderPass when the damage rect is empty.
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698