Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(743)

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase! Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/layer_tree_settings_for_testing.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/test/layer_tree_settings_for_testing.cc ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698