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}
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 6dd0d5a74..60f4b447 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -328,6 +328,8 @@
   const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); }
   // Returns the tree LTH synchronizes with.
   LayerTreeImpl* sync_tree() {
+    // TODO(enne): This is bogus.  It should return based on the value of
+    // Proxy::CommitToActiveTree and not whether the pending tree exists.
     return pending_tree_ ? pending_tree_.get() : active_tree_.get();
   }
   virtual void CreatePendingTree();