diff options
author | enne <enne@chromium.org> | 2015-02-18 17:27:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-19 01:28:29 +0000 |
commit | af5bda38151cf75f19bb8434b4aa0653bdfccc7e (patch) | |
tree | c827fb99e1cefbd5cbb1436b100dfbb00f2b0375 /cc/trees/layer_tree_host_impl_unittest.cc | |
parent | 41d94b4931866d75bdbe9b75377b7608bba63d3a (diff) | |
download | chromium_src-af5bda38151cf75f19bb8434b4aa0653bdfccc7e.zip chromium_src-af5bda38151cf75f19bb8434b4aa0653bdfccc7e.tar.gz chromium_src-af5bda38151cf75f19bb8434b4aa0653bdfccc7e.tar.bz2 |
cc: Calculate "can use lcd text" on the compositor thread
Property trees don't calculate lcd text settings on the main thread, so
to move to them, these calculations need to move to the compositor
thread.
There's nothing tied to the main thread, other than only changing lcd
text during a commit. This restriction avoids the pitfall of tile
versions (i.e. changing out content in place with different settings) by
only changing content and invalidating during a commit, which already
waits for rasterization to occur before displaying that content.
That restriction is satisfied by only updating lcd text on picture
layers during an update on the sync tree on new frame numbers.
Review URL: https://codereview.chromium.org/913203006
Cr-Commit-Position: refs/heads/master@{#316955}
Diffstat (limited to 'cc/trees/layer_tree_host_impl_unittest.cc')
-rw-r--r-- | cc/trees/layer_tree_host_impl_unittest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc index aa46125..5f18538 100644 --- a/cc/trees/layer_tree_host_impl_unittest.cc +++ b/cc/trees/layer_tree_host_impl_unittest.cc @@ -6453,7 +6453,8 @@ TEST_F(LayerTreeHostImplTest, FarAwayQuadsDontNeedAA) { host_impl_->ActivateSyncTree(); - host_impl_->active_tree()->UpdateDrawProperties(); + bool update_lcd_text = false; + host_impl_->active_tree()->UpdateDrawProperties(update_lcd_text); ASSERT_EQ(1u, host_impl_->active_tree()->RenderSurfaceLayerList().size()); LayerTreeHostImpl::FrameData frame; |