| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888); | 66 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888); |
| 67 tile_manager_.reset( | 67 tile_manager_.reset( |
| 68 new FakeTileManager(&tile_manager_client_, resource_pool_.get())); | 68 new FakeTileManager(&tile_manager_client_, resource_pool_.get())); |
| 69 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); | 69 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 scoped_refptr<Tile> CreateTile() { | 72 scoped_refptr<Tile> CreateTile() { |
| 73 return tile_manager_->CreateTile(picture_pile_.get(), | 73 return tile_manager_->CreateTile(picture_pile_.get(), |
| 74 settings_.default_tile_size, | 74 settings_.default_tile_size, |
| 75 gfx::Rect(), | 75 gfx::Rect(), |
| 76 gfx::Rect(), | |
| 77 1.0, | 76 1.0, |
| 78 0, | 77 0, |
| 79 0, | 78 0, |
| 80 0); | 79 0); |
| 81 } | 80 } |
| 82 void ReleaseTiles(std::vector<scoped_refptr<Tile> >* tiles) { | 81 void ReleaseTiles(std::vector<scoped_refptr<Tile> >* tiles) { |
| 83 for (std::vector<scoped_refptr<Tile> >::iterator it = tiles->begin(); | 82 for (std::vector<scoped_refptr<Tile> >::iterator it = tiles->begin(); |
| 84 it != tiles->end(); | 83 it != tiles->end(); |
| 85 it++) { | 84 it++) { |
| 86 Tile* tile = it->get(); | 85 Tile* tile = it->get(); |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 | 765 |
| 767 set.Clear(); | 766 set.Clear(); |
| 768 | 767 |
| 769 PrioritizedTileSet::Iterator empty_it(&set, true); | 768 PrioritizedTileSet::Iterator empty_it(&set, true); |
| 770 EXPECT_FALSE(empty_it); | 769 EXPECT_FALSE(empty_it); |
| 771 } | 770 } |
| 772 | 771 |
| 773 } // namespace | 772 } // namespace |
| 774 } // namespace cc | 773 } // namespace cc |
| 775 | 774 |
| OLD | NEW |