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

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

Issue 1800923002: cc: Directly use property trees to calculate clip rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix perftests compile by not verify clip tree calc there Created 4 years, 7 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/tiles/tile_manager_unittest.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/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 shared_bitmap_manager_.reset(new TestSharedBitmapManager); 858 shared_bitmap_manager_.reset(new TestSharedBitmapManager);
859 gpu_memory_buffer_manager_.reset(new TestGpuMemoryBufferManager); 859 gpu_memory_buffer_manager_.reset(new TestGpuMemoryBufferManager);
860 task_graph_runner_.reset(new TestTaskGraphRunner); 860 task_graph_runner_.reset(new TestTaskGraphRunner);
861 861
862 delegating_renderer_ = delegating_renderer; 862 delegating_renderer_ = delegating_renderer;
863 863
864 // Spend less time waiting for BeginFrame because the output is 864 // Spend less time waiting for BeginFrame because the output is
865 // mocked out. 865 // mocked out.
866 settings_.renderer_settings.refresh_rate = 200.0; 866 settings_.renderer_settings.refresh_rate = 200.0;
867 settings_.background_animation_rate = 200.0; 867 settings_.background_animation_rate = 200.0;
868 settings_.verify_clip_tree_calculations = true;
868 InitializeSettings(&settings_); 869 InitializeSettings(&settings_);
869 870
870 main_task_runner_->PostTask( 871 main_task_runner_->PostTask(
871 FROM_HERE, 872 FROM_HERE,
872 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); 873 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this)));
873 874
874 if (timeout_seconds_) { 875 if (timeout_seconds_) {
875 timeout_.Reset(base::Bind(&LayerTreeTest::Timeout, base::Unretained(this))); 876 timeout_.Reset(base::Bind(&LayerTreeTest::Timeout, base::Unretained(this)));
876 main_task_runner_->PostDelayedTask( 877 main_task_runner_->PostDelayedTask(
877 FROM_HERE, 878 FROM_HERE,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 1029
1029 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { 1030 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const {
1030 DCHECK(IsRemoteTest()); 1031 DCHECK(IsRemoteTest());
1031 DCHECK(remote_client_layer_tree_host_); 1032 DCHECK(remote_client_layer_tree_host_);
1032 1033
1033 return static_cast<RemoteChannelImplForTest*>( 1034 return static_cast<RemoteChannelImplForTest*>(
1034 remote_client_layer_tree_host_->proxy()); 1035 remote_client_layer_tree_host_->proxy());
1035 } 1036 }
1036 1037
1037 } // namespace cc 1038 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_settings_for_testing.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698