Make tree id sequence in LayerTreeHost thread-safe.
commite7ad294747df745e4f0376b7cbc8b0cb1aca9eb9
authordongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 5 Nov 2013 19:11:17 +0000 (5 19:11 +0000)
committerdongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 5 Nov 2013 19:11:17 +0000 (5 19:11 +0000)
treef8d10d94fabfcbb0951d3981491120096d09738a
parentf125f922278ba8ca2558da2bda7914742931d3c2
Make tree id sequence in LayerTreeHost thread-safe.

LayerTreeHost instances can exists in multiple threads. e.g. Aura with
--single-process. So this CL makes the sequence thread-safe.

In addition, this CL removes unused s_num_layer_tree_instances.

Review URL: https://codereview.chromium.org/57713004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233047 0039d316-1c4b-4281-b951-d872f2087c98
cc/trees/layer_tree_host.cc
cc/trees/layer_tree_host.h