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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class PrioritizedTileSetTest : public testing::Test { | 51 class PrioritizedTileSetTest : public testing::Test { |
52 public: | 52 public: |
53 PrioritizedTileSetTest() { | 53 PrioritizedTileSetTest() { |
54 output_surface_ = FakeOutputSurface::Create3d().Pass(); | 54 output_surface_ = FakeOutputSurface::Create3d().Pass(); |
55 CHECK(output_surface_->BindToClient(&output_surface_client_)); | 55 CHECK(output_surface_->BindToClient(&output_surface_client_)); |
56 | 56 |
57 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); | 57 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); |
58 resource_provider_ = ResourceProvider::Create(output_surface_.get(), | 58 resource_provider_ = ResourceProvider::Create(output_surface_.get(), |
59 shared_bitmap_manager_.get(), | 59 shared_bitmap_manager_.get(), |
60 NULL, | 60 NULL, |
| 61 NULL, |
61 0, | 62 0, |
62 false, | 63 false, |
63 1, | 64 1, |
64 false).Pass(); | 65 false).Pass(); |
65 resource_pool_ = ResourcePool::Create( | 66 resource_pool_ = ResourcePool::Create( |
66 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888); | 67 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888); |
67 tile_manager_.reset( | 68 tile_manager_.reset( |
68 new FakeTileManager(&tile_manager_client_, resource_pool_.get())); | 69 new FakeTileManager(&tile_manager_client_, resource_pool_.get())); |
69 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); | 70 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); |
70 } | 71 } |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 | 766 |
766 set.Clear(); | 767 set.Clear(); |
767 | 768 |
768 PrioritizedTileSet::Iterator empty_it(&set, true); | 769 PrioritizedTileSet::Iterator empty_it(&set, true); |
769 EXPECT_FALSE(empty_it); | 770 EXPECT_FALSE(empty_it); |
770 } | 771 } |
771 | 772 |
772 } // namespace | 773 } // namespace |
773 } // namespace cc | 774 } // namespace cc |
774 | 775 |
OLD | NEW |