OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/test/layer_tree_test.h" | 5 #include "cc/test/layer_tree_test.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 task_graph_runner_.reset(new TestTaskGraphRunner); | 834 task_graph_runner_.reset(new TestTaskGraphRunner); |
835 | 835 |
836 // Spend less time waiting for BeginFrame because the output is | 836 // Spend less time waiting for BeginFrame because the output is |
837 // mocked out. | 837 // mocked out. |
838 settings_.renderer_settings.refresh_rate = 200.0; | 838 settings_.renderer_settings.refresh_rate = 200.0; |
839 settings_.background_animation_rate = 200.0; | 839 settings_.background_animation_rate = 200.0; |
840 // Disable latency recovery to make the scheduler more predictable in its | 840 // Disable latency recovery to make the scheduler more predictable in its |
841 // actions and less dependent on timings to make decisions. | 841 // actions and less dependent on timings to make decisions. |
842 settings_.enable_latency_recovery = false; | 842 settings_.enable_latency_recovery = false; |
843 settings_.verify_clip_tree_calculations = true; | 843 settings_.verify_clip_tree_calculations = true; |
844 settings_.verify_transform_tree_calculations = true; | |
845 settings_.renderer_settings.buffer_to_texture_target_map = | 844 settings_.renderer_settings.buffer_to_texture_target_map = |
846 DefaultBufferToTextureTargetMapForTesting(); | 845 DefaultBufferToTextureTargetMapForTesting(); |
847 InitializeSettings(&settings_); | 846 InitializeSettings(&settings_); |
848 | 847 |
849 base::ThreadTaskRunnerHandle::Get()->PostTask( | 848 base::ThreadTaskRunnerHandle::Get()->PostTask( |
850 FROM_HERE, | 849 FROM_HERE, |
851 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); | 850 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); |
852 | 851 |
853 base::RunLoop().Run(); | 852 base::RunLoop().Run(); |
854 DestroyLayerTreeHost(); | 853 DestroyLayerTreeHost(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 DCHECK(!IsRemoteTest()); | 929 DCHECK(!IsRemoteTest()); |
931 return layer_tree_host_in_process_; | 930 return layer_tree_host_in_process_; |
932 } | 931 } |
933 | 932 |
934 Proxy* LayerTreeTest::proxy() { | 933 Proxy* LayerTreeTest::proxy() { |
935 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy() | 934 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy() |
936 : NULL; | 935 : NULL; |
937 } | 936 } |
938 | 937 |
939 } // namespace cc | 938 } // namespace cc |
OLD | NEW |