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

Side by Side Diff: cc/layers/picture_layer_impl_perftest.cc

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor Created 4 years, 5 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/layers/picture_image_layer_unittest.cc ('k') | cc/layers/picture_layer_impl_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "cc/debug/lap_timer.h" 9 #include "cc/debug/lap_timer.h"
10 #include "cc/test/fake_impl_task_runner_provider.h" 10 #include "cc/test/fake_impl_task_runner_provider.h"
(...skipping 24 matching lines...) Expand all
35 tiling->CreateAllTilesForTesting(); 35 tiling->CreateAllTilesForTesting();
36 std::vector<Tile*> tiling_tiles = tiling->AllTilesForTesting(); 36 std::vector<Tile*> tiling_tiles = tiling->AllTilesForTesting();
37 std::copy( 37 std::copy(
38 tiling_tiles.begin(), tiling_tiles.end(), std::back_inserter(*all_tiles)); 38 tiling_tiles.begin(), tiling_tiles.end(), std::back_inserter(*all_tiles));
39 } 39 }
40 40
41 class PictureLayerImplPerfTest : public testing::Test { 41 class PictureLayerImplPerfTest : public testing::Test {
42 public: 42 public:
43 PictureLayerImplPerfTest() 43 PictureLayerImplPerfTest()
44 : task_runner_provider_(base::ThreadTaskRunnerHandle::Get()), 44 : task_runner_provider_(base::ThreadTaskRunnerHandle::Get()),
45 output_surface_(FakeOutputSurface::Create3d()), 45 output_surface_(FakeOutputSurface::CreateDelegating3d()),
46 host_impl_(LayerTreeSettings(), 46 host_impl_(LayerTreeSettings(),
47 &task_runner_provider_, 47 &task_runner_provider_,
48 &shared_bitmap_manager_, 48 &shared_bitmap_manager_,
49 &task_graph_runner_), 49 &task_graph_runner_),
50 timer_(kWarmupRuns, 50 timer_(kWarmupRuns,
51 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 51 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
52 kTimeCheckInterval) {} 52 kTimeCheckInterval) {}
53 53
54 void SetUp() override { 54 void SetUp() override {
55 host_impl_.SetVisible(true); 55 host_impl_.SetVisible(true);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 ASSERT_TRUE(host_impl_.tile_manager() != nullptr); 257 ASSERT_TRUE(host_impl_.tile_manager() != nullptr);
258 host_impl_.tile_manager()->InitializeTilesWithResourcesForTesting(all_tiles); 258 host_impl_.tile_manager()->InitializeTilesWithResourcesForTesting(all_tiles);
259 259
260 RunEvictionQueueConstructTest("0_0_100x100", gfx::Rect(0, 0, 100, 100)); 260 RunEvictionQueueConstructTest("0_0_100x100", gfx::Rect(0, 0, 100, 100));
261 RunEvictionQueueConstructTest("5000_0_100x100", gfx::Rect(5000, 0, 100, 100)); 261 RunEvictionQueueConstructTest("5000_0_100x100", gfx::Rect(5000, 0, 100, 100));
262 RunEvictionQueueConstructTest("9999_0_100x100", gfx::Rect(9999, 0, 100, 100)); 262 RunEvictionQueueConstructTest("9999_0_100x100", gfx::Rect(9999, 0, 100, 100));
263 } 263 }
264 264
265 } // namespace 265 } // namespace
266 } // namespace cc 266 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_image_layer_unittest.cc ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698