| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 namespace { | 51 namespace { |
| 52 | 52 |
| 53 class PrioritizedTileSetTest : public testing::Test { | 53 class PrioritizedTileSetTest : public testing::Test { |
| 54 public: | 54 public: |
| 55 PrioritizedTileSetTest() { | 55 PrioritizedTileSetTest() { |
| 56 output_surface_ = FakeOutputSurface::Create3d().Pass(); | 56 output_surface_ = FakeOutputSurface::Create3d().Pass(); |
| 57 CHECK(output_surface_->BindToClient(&output_surface_client_)); | 57 CHECK(output_surface_->BindToClient(&output_surface_client_)); |
| 58 | 58 |
| 59 resource_provider_ = | 59 resource_provider_ = |
| 60 ResourceProvider::Create(output_surface_.get(), NULL, 0, false).Pass(); | 60 ResourceProvider::Create(output_surface_.get(), |
| 61 NULL, |
| 62 0, |
| 63 false, |
| 64 1).Pass(); |
| 61 tile_manager_.reset( | 65 tile_manager_.reset( |
| 62 new FakeTileManager(&tile_manager_client_, resource_provider_.get())); | 66 new FakeTileManager(&tile_manager_client_, resource_provider_.get())); |
| 63 picture_pile_ = FakePicturePileImpl::CreatePile(); | 67 picture_pile_ = FakePicturePileImpl::CreatePile(); |
| 64 } | 68 } |
| 65 | 69 |
| 66 scoped_refptr<Tile> CreateTile() { | 70 scoped_refptr<Tile> CreateTile() { |
| 67 return tile_manager_->CreateTile(picture_pile_.get(), | 71 return tile_manager_->CreateTile(picture_pile_.get(), |
| 68 settings_.default_tile_size, | 72 settings_.default_tile_size, |
| 69 gfx::Rect(), | 73 gfx::Rect(), |
| 70 gfx::Rect(), | 74 gfx::Rect(), |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 | 721 |
| 718 set.Clear(); | 722 set.Clear(); |
| 719 | 723 |
| 720 PrioritizedTileSet::Iterator empty_it(&set, true); | 724 PrioritizedTileSet::Iterator empty_it(&set, true); |
| 721 EXPECT_FALSE(empty_it); | 725 EXPECT_FALSE(empty_it); |
| 722 } | 726 } |
| 723 | 727 |
| 724 } // namespace | 728 } // namespace |
| 725 } // namespace cc | 729 } // namespace cc |
| 726 | 730 |
| OLD | NEW |