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 <algorithm> | 5 #include <algorithm> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "cc/resources/managed_tile_state.h" | 8 #include "cc/resources/managed_tile_state.h" |
9 #include "cc/resources/prioritized_tile_set.h" | 9 #include "cc/resources/prioritized_tile_set.h" |
10 #include "cc/resources/tile.h" | 10 #include "cc/resources/tile.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 CHECK(output_surface_->BindToClient(&output_surface_client_)); | 54 CHECK(output_surface_->BindToClient(&output_surface_client_)); |
55 | 55 |
56 resource_provider_ = | 56 resource_provider_ = |
57 ResourceProvider::Create(output_surface_.get(), | 57 ResourceProvider::Create(output_surface_.get(), |
58 NULL, | 58 NULL, |
59 0, | 59 0, |
60 false, | 60 false, |
61 1).Pass(); | 61 1).Pass(); |
62 tile_manager_.reset( | 62 tile_manager_.reset( |
63 new FakeTileManager(&tile_manager_client_, resource_provider_.get())); | 63 new FakeTileManager(&tile_manager_client_, resource_provider_.get())); |
64 picture_pile_ = FakePicturePileImpl::CreatePile(); | 64 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); |
65 } | 65 } |
66 | 66 |
67 scoped_refptr<Tile> CreateTile() { | 67 scoped_refptr<Tile> CreateTile() { |
68 return tile_manager_->CreateTile(picture_pile_.get(), | 68 return tile_manager_->CreateTile(picture_pile_.get(), |
69 settings_.default_tile_size, | 69 settings_.default_tile_size, |
70 gfx::Rect(), | 70 gfx::Rect(), |
71 gfx::Rect(), | 71 gfx::Rect(), |
72 1.0, | 72 1.0, |
73 0, | 73 0, |
74 0, | 74 0, |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 718 |
719 set.Clear(); | 719 set.Clear(); |
720 | 720 |
721 PrioritizedTileSet::Iterator empty_it(&set, true); | 721 PrioritizedTileSet::Iterator empty_it(&set, true); |
722 EXPECT_FALSE(empty_it); | 722 EXPECT_FALSE(empty_it); |
723 } | 723 } |
724 | 724 |
725 } // namespace | 725 } // namespace |
726 } // namespace cc | 726 } // namespace cc |
727 | 727 |
OLD | NEW |