| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "cc/layers/content_layer.h" | 8 #include "cc/layers/content_layer.h" |
| 9 #include "cc/layers/heads_up_display_layer.h" | 9 #include "cc/layers/heads_up_display_layer.h" |
| 10 #include "cc/layers/io_surface_layer.h" | 10 #include "cc/layers/io_surface_layer.h" |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 layer_tree_host()->SetRootLayer(parent_); | 1011 layer_tree_host()->SetRootLayer(parent_); |
| 1012 LayerTreeHostContextTest::SetupTree(); | 1012 LayerTreeHostContextTest::SetupTree(); |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 virtual void BeginTest() OVERRIDE { | 1015 virtual void BeginTest() OVERRIDE { |
| 1016 PostSetNeedsCommitToMainThread(); | 1016 PostSetNeedsCommitToMainThread(); |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE { | 1019 virtual void SwapBuffersCompleteOnThread(LayerTreeHostImpl* host_impl) |
| 1020 LayerTreeHostContextTest::CommitCompleteOnThread(impl); | 1020 OVERRIDE { |
| 1021 LayerTreeHostContextTest::SwapBuffersCompleteOnThread(host_impl); |
| 1021 EndTest(); | 1022 EndTest(); |
| 1022 } | 1023 } |
| 1023 | 1024 |
| 1024 virtual void DidInitializeOutputSurface(bool succeeded) OVERRIDE { | 1025 virtual void DidInitializeOutputSurface(bool succeeded) OVERRIDE { |
| 1025 EXPECT_TRUE(succeeded); | 1026 EXPECT_TRUE(succeeded); |
| 1026 } | 1027 } |
| 1027 | 1028 |
| 1028 virtual void AfterTest() OVERRIDE { | 1029 virtual void AfterTest() OVERRIDE { |
| 1029 EXPECT_EQ(0, times_to_lose_on_end_query_); | 1030 EXPECT_EQ(0, times_to_lose_on_end_query_); |
| 1030 } | 1031 } |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1896 RunTest(true, false, true); | 1897 RunTest(true, false, true); |
| 1897 } | 1898 } |
| 1898 | 1899 |
| 1899 TEST_F(UIResourceLostBeforeActivateTree, | 1900 TEST_F(UIResourceLostBeforeActivateTree, |
| 1900 RunMultiThread_DelegatingRenderer_ImplSidePaint) { | 1901 RunMultiThread_DelegatingRenderer_ImplSidePaint) { |
| 1901 RunTest(true, true, true); | 1902 RunTest(true, true, true); |
| 1902 } | 1903 } |
| 1903 | 1904 |
| 1904 } // namespace | 1905 } // namespace |
| 1905 } // namespace cc | 1906 } // namespace cc |
| OLD | NEW |