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

Side by Side Diff: cc/tiles/tile_manager_perftest.cc

Issue 1385043002: cc: Remove SetLayerTreeHostClientReady() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: sky's offline comment Created 5 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/scheduler_test_common.h ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/lazy_instance.h" 5 #include "base/lazy_instance.h"
6 #include "base/location.h" 6 #include "base/location.h"
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "cc/debug/lap_timer.h" 9 #include "cc/debug/lap_timer.h"
10 #include "cc/raster/raster_buffer.h" 10 #include "cc/raster/raster_buffer.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 state.soft_memory_limit_in_bytes, state.num_resources_limit); 117 state.soft_memory_limit_in_bytes, state.num_resources_limit);
118 host_impl_.tile_manager()->SetGlobalStateForTesting(state); 118 host_impl_.tile_manager()->SetGlobalStateForTesting(state);
119 } 119 }
120 120
121 void SetUp() override { 121 void SetUp() override {
122 InitializeRenderer(); 122 InitializeRenderer();
123 SetTreePriority(SAME_PRIORITY_FOR_BOTH_TREES); 123 SetTreePriority(SAME_PRIORITY_FOR_BOTH_TREES);
124 } 124 }
125 125
126 virtual void InitializeRenderer() { 126 virtual void InitializeRenderer() {
127 host_impl_.SetVisible(true);
127 host_impl_.InitializeRenderer(output_surface_.get()); 128 host_impl_.InitializeRenderer(output_surface_.get());
128 tile_manager()->SetTileTaskRunnerForTesting( 129 tile_manager()->SetTileTaskRunnerForTesting(
129 g_fake_tile_task_runner.Pointer()); 130 g_fake_tile_task_runner.Pointer());
130 } 131 }
131 132
132 void SetupDefaultTrees(const gfx::Size& layer_bounds) { 133 void SetupDefaultTrees(const gfx::Size& layer_bounds) {
133 scoped_refptr<FakeDisplayListRasterSource> pending_raster_source = 134 scoped_refptr<FakeDisplayListRasterSource> pending_raster_source =
134 FakeDisplayListRasterSource::CreateFilled(layer_bounds); 135 FakeDisplayListRasterSource::CreateFilled(layer_bounds);
135 scoped_refptr<FakeDisplayListRasterSource> active_raster_source = 136 scoped_refptr<FakeDisplayListRasterSource> active_raster_source =
136 FakeDisplayListRasterSource::CreateFilled(layer_bounds); 137 FakeDisplayListRasterSource::CreateFilled(layer_bounds);
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); 476 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64);
476 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); 477 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128);
477 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); 478 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16);
478 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); 479 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32);
479 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); 480 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64);
480 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); 481 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128);
481 } 482 }
482 483
483 } // namespace 484 } // namespace
484 } // namespace cc 485 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698