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 18 matching lines...) Expand all Loading... |
29 : timer_(kWarmupRuns, | 29 : timer_(kWarmupRuns, |
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 0, | 40 0, |
40 false, | 41 false, |
41 1, | 42 1, |
42 false).Pass(); | 43 false).Pass(); |
43 } | 44 } |
44 | 45 |
45 virtual void SetUp() OVERRIDE { | 46 virtual void SetUp() OVERRIDE { |
46 picture_layer_tiling_client_.SetTileSize(gfx::Size(256, 256)); | 47 picture_layer_tiling_client_.SetTileSize(gfx::Size(256, 256)); |
47 picture_layer_tiling_client_.set_max_tiles_for_interest_area(250); | 48 picture_layer_tiling_client_.set_max_tiles_for_interest_area(250); |
48 picture_layer_tiling_client_.set_tree(PENDING_TREE); | 49 picture_layer_tiling_client_.set_tree(PENDING_TREE); |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 "32_500x500", 32, gfx::Rect(0, 0, 500, 500)); | 361 "32_500x500", 32, gfx::Rect(0, 0, 500, 500)); |
361 RunEvictionIteratorConstructAndIterateTest( | 362 RunEvictionIteratorConstructAndIterateTest( |
362 "64_100x100", 64, gfx::Rect(0, 0, 100, 100)); | 363 "64_100x100", 64, gfx::Rect(0, 0, 100, 100)); |
363 RunEvictionIteratorConstructAndIterateTest( | 364 RunEvictionIteratorConstructAndIterateTest( |
364 "64_500x500", 64, gfx::Rect(0, 0, 500, 500)); | 365 "64_500x500", 64, gfx::Rect(0, 0, 500, 500)); |
365 } | 366 } |
366 | 367 |
367 } // namespace | 368 } // namespace |
368 | 369 |
369 } // namespace cc | 370 } // namespace cc |
OLD | NEW |