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

Unified Diff: cc/quads/render_pass_draw_quad.cc

Issue 14167007: Don't iterate over a 0 mask resource in RenderPassDrawQuad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « cc/quads/draw_quad_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass_draw_quad.cc
diff --git a/cc/quads/render_pass_draw_quad.cc b/cc/quads/render_pass_draw_quad.cc
index 7ee1a8870ed4ebfc0dffaca7ddc55fa216695710..6df60edbdcd23615a722d3decec73b49f573875c 100644
--- a/cc/quads/render_pass_draw_quad.cc
+++ b/cc/quads/render_pass_draw_quad.cc
@@ -83,7 +83,8 @@ void RenderPassDrawQuad::SetAll(
void RenderPassDrawQuad::IterateResources(
const ResourceIteratorCallback& callback) {
- mask_resource_id = callback.Run(mask_resource_id);
+ if (mask_resource_id)
+ mask_resource_id = callback.Run(mask_resource_id);
}
const RenderPassDrawQuad* RenderPassDrawQuad::MaterialCast(
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698