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

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: rebase Created 5 years 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 fdcc26ddf4168b598401d871cc19f66c7b6b63b4..1ffe1fedca56d649536c84db882af278082c19eb 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2120,7 +2120,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);
}
};
@@ -2484,10 +2488,10 @@ class LayerTreeHostTestResourcelessSoftwareDraw : public LayerTreeHostTest {
case 1: {
gfx::Transform identity;
gfx::Rect empty_rect;
+ host_impl->SetExternalTilePriorityConstraints(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