Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index 84c43c20b1c3462b342036d0fbbc7311e9249e28..477ef77b2f6dc031b6e37add99cbab9bde2814b4 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -639,8 +639,10 @@ bool LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) { |
&has_occlusion_from_outside_target_surface)) { |
append_quads_data.had_occlusion_from_outside_target_surface |= |
has_occlusion_from_outside_target_surface; |
- } else { |
+ } else if (!output_surface_->ForcedDrawToSoftwareDevice() || |
aelias_OOO_until_Jul13
2013/05/29 22:30:47
Seems like an arbitrary place to bail out... I sug
boliu
2013/05/30 00:01:28
Went with option 2 stead, skip the whole loop body
|
+ it->CanDrawInTilelessSoftwareMode()) { |
DCHECK_EQ(active_tree_, it->layer_tree_impl()); |
+ |
it->WillDraw(resource_provider_.get()); |
frame->will_draw_layers.push_back(*it); |