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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1418273002: cc: Move draw params from SetExternalDrawConstraints to OnDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests fixed Created 5 years, 1 month 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.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 696c8d9222330cef093149b74d58e45a12158c90..4d788a3f5564d17a6015e5bd2410c645c0e9d7c3 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2102,7 +2102,11 @@ class LayerTreeHostTestAbortedCommitDoesntStallSynchronousCompositor
void CallOnDraw() {
// Synchronous compositor does not draw unless told to do so by the output
// surface.
- output_surface()->client()->OnDraw();
+ gfx::Transform identity;
+ gfx::Rect empty_rect;
+ bool resourceless_software_draw = false;
+ output_surface()->client()->OnDraw(identity, empty_rect, empty_rect,
+ resourceless_software_draw);
}
};
@@ -2462,10 +2466,10 @@ class LayerTreeHostTestResourcelessSoftwareDraw : public LayerTreeHostTest {
case 1: {
gfx::Transform identity;
gfx::Rect empty_rect;
+ host_impl->SetExternalDrawConstraints(empty_rect, identity);
bool resourceless_software_draw = true;
- host_impl->SetExternalDrawConstraints(identity, empty_rect, empty_rect,
- empty_rect, identity,
- resourceless_software_draw);
+ host_impl->SetResourcelessSoftwareDrawForTesting(
+ resourceless_software_draw);
host_impl->SetFullRootLayerDamage();
host_impl->SetNeedsRedraw();
break;

Powered by Google App Engine
This is Rietveld 408576698