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

Unified Diff: cc/test/layer_tree_pixel_test.cc

Issue 1418273002: cc: Move draw params from SetExternalDrawConstraints to OnDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT_SCOPED 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
« no previous file with comments | « cc/test/fake_output_surface_client.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index f29ae8669f657a8b1e367388227132fc5173dec2..fa2549ef0897b1d69c86e7d768af135deabca6eb 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -68,21 +68,6 @@ void LayerTreePixelTest::WillCommitCompleteOnThread(LayerTreeHostImpl* impl) {
DirectRenderer* renderer = static_cast<DirectRenderer*>(impl->renderer());
renderer->SetEnlargePassTextureAmountForTesting(enlarge_texture_amount_);
-
- gfx::Rect viewport = impl->DeviceViewport();
- // The viewport has a 0,0 origin without external influence.
- EXPECT_EQ(gfx::Point().ToString(), viewport.origin().ToString());
- // Be that influence!
- viewport += gfx::Vector2d(20, 10);
- bool resourceless_software_draw = false;
- gfx::Transform identity = gfx::Transform();
- impl->SetExternalDrawConstraints(identity,
- viewport,
- viewport,
- viewport,
- identity,
- resourceless_software_draw);
- EXPECT_EQ(viewport.ToString(), impl->DeviceViewport().ToString());
}
scoped_ptr<CopyOutputRequest> LayerTreePixelTest::CreateCopyOutputRequest() {
« no previous file with comments | « cc/test/fake_output_surface_client.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698