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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 16211002: Skip drawing unsupported layers in forced software mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/layers/solid_color_layer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « cc/layers/solid_color_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698