OLD | NEW |
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 "cc/debug/lap_timer.h" | 5 #include "cc/debug/lap_timer.h" |
6 #include "cc/resources/picture_layer_tiling.h" | 6 #include "cc/resources/picture_layer_tiling.h" |
7 #include "cc/resources/resource_provider.h" | 7 #include "cc/resources/resource_provider.h" |
8 #include "cc/resources/scoped_resource.h" | 8 #include "cc/resources/scoped_resource.h" |
9 #include "cc/test/fake_output_surface.h" | 9 #include "cc/test/fake_output_surface.h" |
10 #include "cc/test/fake_output_surface_client.h" | 10 #include "cc/test/fake_output_surface_client.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 output_surface_ = FakeOutputSurface::Create3d(context_provider_).Pass(); | 33 output_surface_ = FakeOutputSurface::Create3d(context_provider_).Pass(); |
34 CHECK(output_surface_->BindToClient(&output_surface_client_)); | 34 CHECK(output_surface_->BindToClient(&output_surface_client_)); |
35 | 35 |
36 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); | 36 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); |
37 resource_provider_ = ResourceProvider::Create(output_surface_.get(), | 37 resource_provider_ = ResourceProvider::Create(output_surface_.get(), |
38 shared_bitmap_manager_.get(), | 38 shared_bitmap_manager_.get(), |
39 NULL, | 39 NULL, |
40 NULL, | 40 NULL, |
41 0, | 41 0, |
42 false, | 42 false, |
43 1, | 43 1).Pass(); |
44 false).Pass(); | |
45 } | 44 } |
46 | 45 |
47 virtual void SetUp() override { | 46 virtual void SetUp() override { |
48 picture_layer_tiling_client_.SetTileSize(gfx::Size(256, 256)); | 47 picture_layer_tiling_client_.SetTileSize(gfx::Size(256, 256)); |
49 picture_layer_tiling_client_.set_max_tiles_for_interest_area(250); | 48 picture_layer_tiling_client_.set_max_tiles_for_interest_area(250); |
50 picture_layer_tiling_client_.set_tree(PENDING_TREE); | 49 picture_layer_tiling_client_.set_tree(PENDING_TREE); |
51 picture_layer_tiling_ = PictureLayerTiling::Create( | 50 picture_layer_tiling_ = PictureLayerTiling::Create( |
52 1, gfx::Size(256 * 50, 256 * 50), &picture_layer_tiling_client_); | 51 1, gfx::Size(256 * 50, 256 * 50), &picture_layer_tiling_client_); |
53 picture_layer_tiling_->CreateAllTilesForTesting(); | 52 picture_layer_tiling_->CreateAllTilesForTesting(); |
54 } | 53 } |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 "32_500x500", 32, gfx::Rect(0, 0, 500, 500)); | 351 "32_500x500", 32, gfx::Rect(0, 0, 500, 500)); |
353 RunEvictionIteratorConstructAndIterateTest( | 352 RunEvictionIteratorConstructAndIterateTest( |
354 "64_100x100", 64, gfx::Rect(0, 0, 100, 100)); | 353 "64_100x100", 64, gfx::Rect(0, 0, 100, 100)); |
355 RunEvictionIteratorConstructAndIterateTest( | 354 RunEvictionIteratorConstructAndIterateTest( |
356 "64_500x500", 64, gfx::Rect(0, 0, 500, 500)); | 355 "64_500x500", 64, gfx::Rect(0, 0, 500, 500)); |
357 } | 356 } |
358 | 357 |
359 } // namespace | 358 } // namespace |
360 | 359 |
361 } // namespace cc | 360 } // namespace cc |
OLD | NEW |