diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 22:49:04 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 22:49:04 +0000 |
commit | c05dfbbb633b1955c57e0b5e12e8cd26801231c4 (patch) | |
tree | 87e5490353b1a69b901336081ceab73bffd9842d /cc/test/layer_tree_pixel_test.cc | |
parent | 6a8ab1dceba32f021f112ce62c8ac80d70e658c3 (diff) | |
download | chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.zip chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.tar.gz chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.tar.bz2 |
Pass resourceless software mode in SetExternalConstraints
This fixes the bug that resourceless software mode not
dirtying the draw properties.
This allows OutputSurface::ForcedDrawToSoftwareDevice to be
removed. And merged the valid_for_tile_management parameter
into resourceless_software_draw. This effectively reverses
the last bool parameter on SetExternalDrawConstraints.
BUG=391829
Review URL: https://codereview.chromium.org/376683004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_pixel_test.cc')
-rw-r--r-- | cc/test/layer_tree_pixel_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc index 063f4d9..cbb936b 100644 --- a/cc/test/layer_tree_pixel_test.cc +++ b/cc/test/layer_tree_pixel_test.cc @@ -75,7 +75,9 @@ void LayerTreePixelTest::CommitCompleteOnThread(LayerTreeHostImpl* impl) { EXPECT_EQ(gfx::Point().ToString(), viewport.origin().ToString()); // Be that influence! viewport += gfx::Vector2d(20, 10); - impl->SetExternalDrawConstraints(gfx::Transform(), viewport, viewport, true); + bool resourceless_software_draw = false; + impl->SetExternalDrawConstraints( + gfx::Transform(), viewport, viewport, resourceless_software_draw); EXPECT_EQ(viewport.ToString(), impl->DeviceViewport().ToString()); } |