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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 1326713002: cc: Workaround resourceless draw crash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 4f15794c4f6884aac39279ae452cd34cf3133df5..c218964151e8bc26fa7ffce19e984a65a8aee199 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -182,7 +182,7 @@ void PictureLayerImpl::AppendQuads(RenderPass* render_pass,
gfx::Rect opaque_rect = contents_opaque() ? geometry_rect : gfx::Rect();
gfx::Rect visible_geometry_rect =
scaled_occlusion.GetUnoccludedContentRect(geometry_rect);
- if (visible_geometry_rect.IsEmpty())
+ if (visible_geometry_rect.IsEmpty() || !raster_source_->HasRecordings())
vmpstr 2015/09/01 20:26:38 Can you leave a comment here explaining why this c
danakj 2015/09/01 20:42:30 If it's a workaround, can you leave a TODO pointin
return;
gfx::Rect quad_content_rect = shared_quad_state->visible_quad_layer_rect;
« 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