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 19 matching lines...) Expand all Loading... |
30 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), | 30 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), |
31 kTimeCheckInterval), | 31 kTimeCheckInterval), |
32 context_provider_(TestContextProvider::Create()) { | 32 context_provider_(TestContextProvider::Create()) { |
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 0, | 41 0, |
41 false, | 42 false, |
42 1, | 43 1, |
43 false).Pass(); | 44 false).Pass(); |
44 } | 45 } |
45 | 46 |
46 virtual void SetUp() override { | 47 virtual void SetUp() override { |
47 picture_layer_tiling_client_.SetTileSize(gfx::Size(256, 256)); | 48 picture_layer_tiling_client_.SetTileSize(gfx::Size(256, 256)); |
48 picture_layer_tiling_client_.set_max_tiles_for_interest_area(250); | 49 picture_layer_tiling_client_.set_max_tiles_for_interest_area(250); |
49 picture_layer_tiling_client_.set_tree(PENDING_TREE); | 50 picture_layer_tiling_client_.set_tree(PENDING_TREE); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 "32_500x500", 32, gfx::Rect(0, 0, 500, 500)); | 352 "32_500x500", 32, gfx::Rect(0, 0, 500, 500)); |
352 RunEvictionIteratorConstructAndIterateTest( | 353 RunEvictionIteratorConstructAndIterateTest( |
353 "64_100x100", 64, gfx::Rect(0, 0, 100, 100)); | 354 "64_100x100", 64, gfx::Rect(0, 0, 100, 100)); |
354 RunEvictionIteratorConstructAndIterateTest( | 355 RunEvictionIteratorConstructAndIterateTest( |
355 "64_500x500", 64, gfx::Rect(0, 0, 500, 500)); | 356 "64_500x500", 64, gfx::Rect(0, 0, 500, 500)); |
356 } | 357 } |
357 | 358 |
358 } // namespace | 359 } // namespace |
359 | 360 |
360 } // namespace cc | 361 } // namespace cc |
OLD | NEW |