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/debug/test_context_provider.h" | 8 #include "cc/debug/test_context_provider.h" |
9 #include "cc/debug/test_web_graphics_context_3d.h" | 9 #include "cc/debug/test_web_graphics_context_3d.h" |
10 #include "cc/layers/content_layer.h" | 10 #include "cc/layers/content_layer.h" |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 } | 1011 } |
1012 | 1012 |
1013 layer_tree_host()->SetRootLayer(parent_); | 1013 layer_tree_host()->SetRootLayer(parent_); |
1014 LayerTreeHostContextTest::SetupTree(); | 1014 LayerTreeHostContextTest::SetupTree(); |
1015 } | 1015 } |
1016 | 1016 |
1017 virtual void BeginTest() OVERRIDE { | 1017 virtual void BeginTest() OVERRIDE { |
1018 PostSetNeedsCommitToMainThread(); | 1018 PostSetNeedsCommitToMainThread(); |
1019 } | 1019 } |
1020 | 1020 |
1021 virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE { | 1021 virtual void SwapBuffersCompleteOnThread( |
1022 LayerTreeHostContextTest::CommitCompleteOnThread(impl); | 1022 LayerTreeHostImpl* host_impl) OVERRIDE { |
| 1023 LayerTreeHostContextTest::SwapBuffersCompleteOnThread(host_impl); |
1023 EndTest(); | 1024 EndTest(); |
1024 } | 1025 } |
1025 | 1026 |
1026 virtual void DidInitializeOutputSurface(bool succeeded) OVERRIDE { | 1027 virtual void DidInitializeOutputSurface(bool succeeded) OVERRIDE { |
1027 EXPECT_TRUE(succeeded); | 1028 EXPECT_TRUE(succeeded); |
1028 } | 1029 } |
1029 | 1030 |
1030 virtual void AfterTest() OVERRIDE { | 1031 virtual void AfterTest() OVERRIDE { |
1031 EXPECT_EQ(0, times_to_lose_on_end_query_); | 1032 EXPECT_EQ(0, times_to_lose_on_end_query_); |
1032 } | 1033 } |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 RunTest(true, false, true); | 1901 RunTest(true, false, true); |
1901 } | 1902 } |
1902 | 1903 |
1903 TEST_F(UIResourceLostBeforeActivateTree, | 1904 TEST_F(UIResourceLostBeforeActivateTree, |
1904 RunMultiThread_DelegatingRenderer_ImplSidePaint) { | 1905 RunMultiThread_DelegatingRenderer_ImplSidePaint) { |
1905 RunTest(true, true, true); | 1906 RunTest(true, true, true); |
1906 } | 1907 } |
1907 | 1908 |
1908 } // namespace | 1909 } // namespace |
1909 } // namespace cc | 1910 } // namespace cc |
OLD | NEW |