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

Unified Diff: cc/trees/layer_tree_host_unittest_damage.cc

Issue 19106007: cc: Allow the main thread to cancel commits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address danakj's review comments Created 7 years, 5 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
Index: cc/trees/layer_tree_host_unittest_damage.cc
diff --git a/cc/trees/layer_tree_host_unittest_damage.cc b/cc/trees/layer_tree_host_unittest_damage.cc
index 0feabf7ef4d233b396ed2dec999aeb8b8af2719f..3d444066d24e833102e5c5a70678676efa0e4c46 100644
--- a/cc/trees/layer_tree_host_unittest_damage.cc
+++ b/cc/trees/layer_tree_host_unittest_damage.cc
@@ -83,10 +83,12 @@ class LayerTreeHostDamageTestNoDamageDoesNotSwap
// Cause visible damage.
content_->SetNeedsDisplayRect(
gfx::Rect(layer_tree_host()->device_viewport_size()));
+ layer_tree_host()->SetNeedsCommit();
danakj 2013/07/18 21:57:23 This is a ContentLayer, so won't damaging the laye
enne (OOO) 2013/07/19 01:23:51 Quite right. Removed this.
break;
case 3:
// Cause non-visible damage.
content_->SetNeedsDisplayRect(gfx::Rect(1990, 1990, 10, 10));
+ layer_tree_host()->SetNeedsCommit();
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698