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

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: Nit 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
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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 task_graph_runner_.reset(new TestTaskGraphRunner); 833 task_graph_runner_.reset(new TestTaskGraphRunner);
834 834
835 // Spend less time waiting for BeginFrame because the output is 835 // Spend less time waiting for BeginFrame because the output is
836 // mocked out. 836 // mocked out.
837 settings_.renderer_settings.refresh_rate = 200.0; 837 settings_.renderer_settings.refresh_rate = 200.0;
838 settings_.background_animation_rate = 200.0; 838 settings_.background_animation_rate = 200.0;
839 // Disable latency recovery to make the scheduler more predictable in its 839 // Disable latency recovery to make the scheduler more predictable in its
840 // actions and less dependent on timings to make decisions. 840 // actions and less dependent on timings to make decisions.
841 settings_.enable_latency_recovery = false; 841 settings_.enable_latency_recovery = false;
842 settings_.verify_clip_tree_calculations = true; 842 settings_.verify_clip_tree_calculations = true;
843 settings_.verify_transform_tree_calculations = true;
844 settings_.renderer_settings.buffer_to_texture_target_map = 843 settings_.renderer_settings.buffer_to_texture_target_map =
845 DefaultBufferToTextureTargetMapForTesting(); 844 DefaultBufferToTextureTargetMapForTesting();
846 InitializeSettings(&settings_); 845 InitializeSettings(&settings_);
847 846
848 base::ThreadTaskRunnerHandle::Get()->PostTask( 847 base::ThreadTaskRunnerHandle::Get()->PostTask(
849 FROM_HERE, 848 FROM_HERE,
850 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); 849 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this)));
851 850
852 base::RunLoop().Run(); 851 base::RunLoop().Run();
853 DestroyLayerTreeHost(); 852 DestroyLayerTreeHost();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 DCHECK(!IsRemoteTest()); 928 DCHECK(!IsRemoteTest());
930 return layer_tree_host_in_process_; 929 return layer_tree_host_in_process_;
931 } 930 }
932 931
933 Proxy* LayerTreeTest::proxy() { 932 Proxy* LayerTreeTest::proxy() {
934 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy() 933 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy()
935 : NULL; 934 : NULL;
936 } 935 }
937 936
938 } // namespace cc 937 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698