| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 scoped_refptr<Tile> CreateTile() { | 70 scoped_refptr<Tile> CreateTile() { |
| 71 return tile_manager_->CreateTile(picture_pile_.get(), | 71 return tile_manager_->CreateTile(picture_pile_.get(), |
| 72 settings_.default_tile_size, | 72 settings_.default_tile_size, |
| 73 gfx::Rect(), | 73 gfx::Rect(), |
| 74 gfx::Rect(), | 74 gfx::Rect(), |
| 75 1.0, | 75 1.0, |
| 76 0, | 76 0, |
| 77 0, | 77 0, |
| 78 true); | 78 true, |
| 79 false); |
| 79 } | 80 } |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 LayerTreeSettings settings_; | 83 LayerTreeSettings settings_; |
| 83 FakeOutputSurfaceClient output_surface_client_; | 84 FakeOutputSurfaceClient output_surface_client_; |
| 84 scoped_ptr<FakeOutputSurface> output_surface_; | 85 scoped_ptr<FakeOutputSurface> output_surface_; |
| 85 scoped_ptr<ResourceProvider> resource_provider_; | 86 scoped_ptr<ResourceProvider> resource_provider_; |
| 86 FakeTileManagerClient tile_manager_client_; | 87 FakeTileManagerClient tile_manager_client_; |
| 87 scoped_ptr<FakeTileManager> tile_manager_; | 88 scoped_ptr<FakeTileManager> tile_manager_; |
| 88 scoped_refptr<FakePicturePileImpl> picture_pile_; | 89 scoped_refptr<FakePicturePileImpl> picture_pile_; |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 | 722 |
| 722 set.Clear(); | 723 set.Clear(); |
| 723 | 724 |
| 724 PrioritizedTileSet::Iterator empty_it(&set, true); | 725 PrioritizedTileSet::Iterator empty_it(&set, true); |
| 725 EXPECT_FALSE(empty_it); | 726 EXPECT_FALSE(empty_it); |
| 726 } | 727 } |
| 727 | 728 |
| 728 } // namespace | 729 } // namespace |
| 729 } // namespace cc | 730 } // namespace cc |
| 730 | 731 |
| OLD | NEW |