diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 09:18:59 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 09:18:59 +0000 |
commit | 10aabcc348711dc3544ceb20773ddd2fb6ceb773 (patch) | |
tree | 0b94311df1dfca512e6775273a39dfb341b7c260 /cc/layer_iterator_unittest.cc | |
parent | 27036a1728b42e82bb461f4c54270c29e7a181fc (diff) | |
download | chromium_src-10aabcc348711dc3544ceb20773ddd2fb6ceb773.zip chromium_src-10aabcc348711dc3544ceb20773ddd2fb6ceb773.tar.gz chromium_src-10aabcc348711dc3544ceb20773ddd2fb6ceb773.tar.bz2 |
Mark layers that can use LCD text based on layer transform and opacity.
- Text AA settings are not adjusted during animation to avoid repaints.
- Renamed Layer::useLCDText to Layer::canUseLCDText.
BUG=100666
Review URL: https://chromiumcodereview.appspot.com/11360093
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_iterator_unittest.cc')
-rw-r--r-- | cc/layer_iterator_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/layer_iterator_unittest.cc b/cc/layer_iterator_unittest.cc index 98c8cc4..d30d580 100644 --- a/cc/layer_iterator_unittest.cc +++ b/cc/layer_iterator_unittest.cc @@ -127,7 +127,7 @@ TEST(LayerIteratorTest, simpleTree) rootLayer->addChild(fourth); std::vector<scoped_refptr<Layer> > renderSurfaceLayerList; - LayerTreeHostCommon::calculateDrawProperties(rootLayer.get(), rootLayer->bounds(), 1, 1, 256, renderSurfaceLayerList); + LayerTreeHostCommon::calculateDrawProperties(rootLayer.get(), rootLayer->bounds(), 1, 1, 256, false, renderSurfaceLayerList); iterateBackToFront(&renderSurfaceLayerList); EXPECT_COUNT(rootLayer, 0, -1, 1); @@ -169,7 +169,7 @@ TEST(LayerIteratorTest, complexTree) root23->addChild(root231); std::vector<scoped_refptr<Layer> > renderSurfaceLayerList; - LayerTreeHostCommon::calculateDrawProperties(rootLayer.get(), rootLayer->bounds(), 1, 1, 256, renderSurfaceLayerList); + LayerTreeHostCommon::calculateDrawProperties(rootLayer.get(), rootLayer->bounds(), 1, 1, 256, false, renderSurfaceLayerList); iterateBackToFront(&renderSurfaceLayerList); EXPECT_COUNT(rootLayer, 0, -1, 1); @@ -225,7 +225,7 @@ TEST(LayerIteratorTest, complexTreeMultiSurface) root23->addChild(root231); std::vector<scoped_refptr<Layer> > renderSurfaceLayerList; - LayerTreeHostCommon::calculateDrawProperties(rootLayer.get(), rootLayer->bounds(), 1, 1, 256, renderSurfaceLayerList); + LayerTreeHostCommon::calculateDrawProperties(rootLayer.get(), rootLayer->bounds(), 1, 1, 256, false, renderSurfaceLayerList); iterateBackToFront(&renderSurfaceLayerList); EXPECT_COUNT(rootLayer, 0, -1, 1); |